On Sep 9, 7:03 am, jamesct <[email protected]> wrote: > This is a real tough problem to explain. The best way to understand is > by looking at my map (http://www.capetown-direct.com/map.aspx) . > Everything is going well with it, except for the very first GGeoXML > that gets added doesn't have the correct addoverlay event handler. > > Only explainable by example. Load the map. Before you do anything > else, click on one of the markers. The info window shows the kml > description of the marker. Then click any other marker, and the info > window that results is now correct, i.e. the custom InfoWindowHtml. > > This is a complete mystery to me, I have registered an "addoverlay" > map event handler during initialize() that should intercept the > GGeoXML overlays getting added (and does work, but just not for the > very first time you click). > > Any suggestions/thoughts?
It is not the first click, it is the first click on a marker. FYI - your addOverlay function is being called when the map.addOverlay (geoXML); is called, as well as when you click on a marker or an infoWindow. Have you seen Mike Williams' example of this: http://econym.org.uk/gmap/interceptor.htm (it seems to work for the first marker clicked...) -- Larry --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
