On Apr 15, 5:50 pm, andreivasile <[email protected]> wrote:
>
> gx variable is defined inside initialize() function
>
> function initialize() {
> ...
> var gx = new GGeoXml('referenceToMyKMLfile');

This is likely to be the problem. Once the function finishes, gx goes
out of scope and you won't be able to do anything with it. You should
have found that each of your million changes of the checkbox actually
produced an error. If you need to reference something within more than
one function, it must be declared in global scope.

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