> Unfortunately my iLayer variable is only defined locally. So using
> setTimeout causes it to go out of scope.
>
> iLayer can have different values - so it cannot be a global variable.
> I might have 1000 markers in 5 layers.

Dunno what any of that means, without seeing your secret map.

You should be able to obtain function closure on your variable.  It's
not an easy concept to grasp, but basically if you nest a function
call inside a function, the inner one will keep a local copy of the
variable.
http://econym.org.uk/gmap/closure.htm

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