Google Maps: Why is MarkerClusterer not working?

First I want to say: I couldn't find a support forum for this library, so I would like to try it here. I hope these issues are resolved here and the link to my page should not be removed. The link is only meant to see how it works and which parts don't work. Don't delete it.

Now to the question :)

I want to use the "MarkerClusterer" library ( Google codes page ) to group my markers on Google Maps using an API. Here's how it works: Documentation -> Examples

Unfortunately it doesn't work on my site and I don't know why. could you help me? I cannot find the error in my code:

Link (as demo)

Can you find the error?

0


a source to share


1 answer


I am getting this error in Firebug:

GOverlay is not defined
ClusterMarker_.prototype = new GOverlay();

      

This is probably caused by the init function running before the Google Maps has finished loading. Try removing the duplicate tag:



<div class="clear"></div>
<body onload="initialize()" onunload="GUnload()">
48<div class="grid_12">

      

I don't think you should add every marker to the map when using the MarkerCluser. Try to remove this pr marker:

map.addOverlay(markierung1);

      

+2


a source







All Articles