I have an issue with my MarkerClusterer.
When i was 400 markers, cluster appears, all worked. But now i have moire than 600 markers and cluster don't appear.
Firebug display this error:
that.map_.mapTypes[that.map_.getMapTypeId()] is undefined markerclusterer.js:304
Have you an idea?
Thanks
I fixed it sorta the same way but slightly different.. Best way it to update your code.. this code augments the property back where it is expected.
Yep, woke up to mine broken too.
Comments here worked, I added maxZoom: 18 to my initialization.
the best solution is switching to api 3.5 waiting a fix by google.
<script type="text/javascript" src="http://maps.google.com/maps/api/js?v=3.5&sensor=true"></script>
In markerclusterer.js at line 156 change code from
to
var maxZoom = 18;
It seems that google have changed something in the api. You can manually set the maxZoom value in your cluster options or in your map options to something like 16, then it works again. If you have other layers like Bing oder OSM, you have to set their maxZoom values too.
Update your markercluster.js to the latest revision: http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/src/markerclusterer.js
and your problem will be solved!