I am working with KML files and using GGeoXML to load external KMZ
files into the map. After I have loaded it, I want to remove certain
elements specified in the KML file. For example, I would like to
remove a GScreenOverlay with a certain id. Basically, I need a way to
get all GScreenOverlay objects or all Overlay objects so that I can
modify them (show/hide, etc.). Isn't there some method to return an
array of all loaded Overlay objects via array? Here is what I want to
do:

map = new GMap2(map_div)
var gx = new GGeoXML(http://path.to.kmz)
map.addOverlay(gx)
arr = map.getOverlays()
arr[id_of_specific_overlay].hide()

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to