Not sure if this helps you but seems like in v3 the std way to manage
markers is do create a global array of markers that you iterrate
on to manage hide,show of the markers on the map
What I do is keep a namespaced global  var like this
var ecMap = {
  map: null,
  bounds: null,
  geocoder: null,
  trafficInfo: null,  //traffic overlay
  ptOverlays : [],  //array of point marker we add to map
  locOverlays : []  //array of location markers we add to map
}

Then when I add a marker
marker = getMarker(ecMap.map,latlng,id,sIcon,title,label)
ecMap.ptOverlays.push(marker);

So if you could just add the kml overlay w/o markers then add the
markers manually to the overlay
you can then manage the markers in you global array(s)

On Sep 10, 7:07 am, Justin <[email protected]> wrote:
> The documentation states that when a map has a KML layer overlaid onto
> it, it creates Marker objects in memory based on the KML. Why is there
> no way for developers to access these markers? Something like
> getMarkers() would be nice.
>
> My problem:
>
> I have a map, the map has a KML layer set on it. I would like to be
> able to manipulate/grab the placemarks on the map that were generated
> from the KML. However, there is currently know way of doing this.
>
> If anyone has an alternative solution, let me know!
>
> Thanks,
> Justin

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to