Search code examples
javascriptgoogle-mapsgoogle-maps-api-3google-maps-markersmarkerclusterer

strange issue with google maps and marker clusterer when zooming in


I am using google maps api v3 as well as marker cluster plus from this url (http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerclustererplus/2.0.9/src/markerclusterer_packed.js)

Now my issue is:

I have two pointers that are mapped to the exact same latitude and longitude. Naturally marker clusterer shows a blue bubble with the number 2 on it. However when I click on the blue bubble the after zooming in, the blue cluser icon dissapears and no pointers are shown.

When this happens my zoomChanged even is also triggered and alerts me that the zoom level is 49 before being triggered again and alerting of the correct zoom level of 20.


Solution

  • You need to specify the maxZoom so it displays the markers.

    from the documentation

    maxZoom | number | The maximum zoom level at which clustering is enabled or null if clustering is to be enabled at all zoom levels. The default value is null.