Fantastic! Thank you very much :)
It works perfectly now. I knew I was probably passing the wrong array, but I was lost on how to proceed. Cheers, James On Jun 21, 4:46 pm, Rossko <[email protected]> wrote: > > 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.
