Hi Morten. The problem is that a clustered marker has been removed from the map, trying to trigger a clustered marker's click event will cause an error in the API code such as:
Error: this.Fd is not a function Source File: http://maps.google.com/intl/en_ALL/mapfiles/137c/maps2.api/main.js Line: 1386 Using the GMap2 method openInfoWindowHtml() instead of the GMarker method openInfoWindowHtml() gets around the problem. But the clustered marker will still be clustered - the infowindow appearing where the clustered marker would have been visible if not clustered. Actually that's not 100% correct... If you use the GMap2 openInfoWindowHtml() method then you specify two arguments: map.openInfoWindowHtml(myGLatLng, myHtml); The infowindow will not open at exactly the same place as if you had used the GMarker method. Look at this thread: http://groups.google.co.uk/group/Google-Maps-API/browse_frm/thread/8cbb1552817df999/edbdbca64c34f036?hl=en&lnk=gst&q=martin+offset#edbdbca64c34f036 Mike's post #5 explains how to exactly position the infowindow using the GMap2 openInfoWindowHtml() method. An alternative is to use the ClusterMarker triggerClick() method: http://googlemapsapi.martinpearman.co.uk/readarticle.php?article_id=4 "triggerClick() triggers a click event on the marker identified in the array of markers by the index passed to triggerClick. The map will move and/or zoom in if necessary to uncluster that marker". Martin. On 23 Nov, 22:10, Morten <[EMAIL PROTECTED]> wrote: > Hey > > When I found ClusterMarker I was glad but then discovered that it > disables the trigger event of all clustered markers which kinda > sucks :) > > Is there a way to disable this "feature"? > > You can see the map at:http://www.horse.dk/google.asp > > Cheers > Morten --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
