Making the folder check box match its contents probably requires it look
through all of its contents... and reset to match there is no easy button to
make it work that way but you might be able to find out what the resultant
id is for the check box is and use get that element and over-ride to
checked.

On Thu, Jul 8, 2010 at 7:44 AM, rembem <[email protected]> wrote:

> 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]<google-maps-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-api?hl=en.
>
>

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