> This is my site:http://edit.africamuseum.be/congorives2/ > > I get the error: > marker.getLatLng is not a function
When you call MarkerClusterer, it is expecting to be passed an array of GMarkers. You are passing it 'markers', which is an array of tags from your XML. When you call your createMarker() function, it returns a GMarker, which you addOverlay to the map. Don't do that, you want the clusterer to populate the map after all. Save your GMarker in some other array - say MyMarkers.push(marker) - and pass that MyMarkers array to the clusterer. -- You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
