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.
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
- Node.js (v14 or higher)
- npm or yarn
- Google Maps API key
- Copy the example environment file:
cp .env.example .env- Edit
.envand 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_hereNote: The .env file is already in .gitignore to keep your API key secure.
- Clone the repository:
git clone <repository-url>
cd reproduce-maps- Install dependencies:
npm install- Start the development server:
npm run dev- Open your browser and navigate to
http://localhost:3000