My testmap:
http://www.joli-ecotours.com/maptestforgeoxml.htm
In this map I load multiple MyMap kml's with GeoXML and the map
elements are shown in the sidebar, which all works fine.
What I want is to hide most maps/kml's (and their elements) (on the
map, and also in the sidebar), when the page is initially loaded. I
managed to do this by using this code:
GEvent.addListener( gml1, 'parsed', function(){
gml1.hide();
});
or this code, also works:
GEvent.addListener( gml1, 'parsed', function(){
gml1.toggleContents(1, false);
});
My problem is that the map's main/containing folder keeps its checkbox
checked in the sidebar when using this hide function. I want it
unchecked, just like its elements.
Is this possible with the standard GeoXML functions? Or if not, with
an adapted function? Any help is appreciated, my javascript skills are
not good enough to solve this.
--
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.