Hi Martin and thanks for the fast reply (you too Mike), I forgot to mention what it is i am actually trying to do. 1. There should be a list/sidebar with all locations/markers like there is now, each on the locations triggers that specific markers trigger event and opens the info window. 2. The markers should be clustered or else the markers will overlay each other. 3. When i click on a clustermarker it should open up all info windows of the markers in that cluster.
I thought it would be easy since the clustermarkerclick gets an array containing a reference to all clustered markers, but i was wrong. Is there another way to do this? -Morten On Nov 24, 6:56 am, Martin <[EMAIL PROTECTED]> wrote: > 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/8c... > > 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 -~----------~----~----~----~------~----~------~--~---
