Skip to content

ronlv10/reproduce-maps-issue

Repository files navigation

Google Maps - Reproduce issue 563

A reproduction repository for the Google Maps clustering issue described in react-google-maps issue #563.

I patched @googlemaps/markerclusterer to run every bound_changed to increase the likelihood of this issue to occur.

Issue Description

This repository reproduces a bug where fast zooming on mobile devices causes the map to become stuck and unresponsive. The issue occurs when:

  • Using advanced markers with clustering
  • zoom out fast while keeping the fingers for long after zoom out (mobile only)
  • The map gets stuck in an unusable state
  • Sometimes requires a full page reload to recover

Example video:

WhatsApp.Video.2025-07-29.at.01.24.23.online-video-cutter.com.mp4

Prerequisites

  • Node.js (v14 or higher)
  • npm or yarn
  • Google Maps API key

Environment Setup

  1. Copy the example environment file:
cp .env.example .env
  1. Edit .env and add your Google Maps API key and map ID:
VITE_GOOGLE_MAPS_API_KEY=your_actual_api_key_here
VITE_GOOGLE_MAPS_MAP_ID=your_map_id_here

Note: The .env file is already in .gitignore to keep your API key secure.

Installation

  1. Clone the repository:
git clone <repository-url>
cd reproduce-maps
  1. Install dependencies:
npm install
  1. Start the development server:
npm run dev
  1. Open your browser and navigate to http://localhost:3000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published