I have been using Mike Williams technique for loading a kml file of placemarks and handling the "addOverlay" events as placemarks are added to the map (http://econym.org.uk/gmap/interceptor.htm).
Technique works fine with my small test bed, but fails when my kml file has 134 markers (symptom: No events received for overlays of instanceof Gmarker, eventhough the pm icons appear on the map!). When I break the kml file into 2 approximate halves and load the kml files sequentially, then page generates both map icons and received events for building the sidebar entries... Here are my examples (If you use Firefox-Firebug, then some useful logging messages appear in the console log): http://www.stjohnhistoricalsociety.org/Maps12.2.htm By default the Aerial Photo 1947 map of St John is selected and uses GGeoXml and addOverlay to process the kml file (/KML/Placemarks6.kml) with 134 placemarks. The map icons appear, but no "addOverlay" events for the Gmarker overlays occur(???) Now select the radio button for "USC&GS 1934" maptype, which loads a new custom map and two kml files: /KML/Placemarks4.kml and /KML/ Placemarks5.kml which are 2 pieces of Placemarks6.kml. Now the map icons appear, and the sidebar is expanded as the "addOverlay" events for the Gmarker overlays occur. My project is expected to handle up to 500 placemarks. What limits is my approach up against? My alternative flip-flop would be use an alternative Kml parser suggested by Mike Williams: EGeoXml and GeoXml. Peter -- 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.
