> As for the first question, I think the syntax is correct and the
> function works.

Okay, don't try the suggestion then.

Looking at
    GEvent.addListener(Goverlay[x], 'parsed', hide(x));
what happens is, as you define the listener, the function reference is
evaluated and stored.
This means that hide(x) is run at the time the listener is created.
The result (perhaps just 'false', I haven't looked) is stored in the
listener.
Evaluating hide(x) happens to reset your checkboxes.
Evaluating hide(x) cn't hide the overlay, because the KML hasn't even
been parsed yet.
All this happened before the KML is parsed.

When the KML is parsed, the listener triggers, and null function is
happily executed, producing no action of course.

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