js-markerclusterer
js-markerclusterer copied to clipboard
Cluster Not Expanding After Marker Click with Advanced Markers
Google Maps JavaScript API: Advanced Markers cluster grouping not working after migration
Environment details
- Google Maps JavaScript API: Advanced Markers - Cluster grouping behavior issue
- OS type and version: Not specified (web-based issue)
- Library version: Google Maps JavaScript API with Advanced Markers, Supercluster with radius 140
Steps to reproduce
- Migrate from standard markers to Advanced Markers in Google Maps JavaScript API
- Set up map with height of 350px
- Configure Supercluster with radius of 140
- Load markers that form clusters
- Click on a cluster (specifically the "14" cluster in Springfield, Illinois in the provided example)
- Observe that the cluster does not break apart or expand as expected
Code example
// JSFiddle reproduction: https://jsfiddle.net/ro5wnj6m/4/
// Map configuration with Advanced Markers and Supercluster
// Map height: 350px
// Supercluster radius: 140
// Issue: Clicking cluster "14" in Springfield, Illinois does not expand/break apart