I want to use ProgressBarControl.

I'm using a 1 ms delay, so it will actually display the progress
marker.

I'm trying to use
setTimeout ("createMarker_shell(iLayer)" ,1 );

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.

What can I do? Can I pass the iLayer variable as a value?  I've read
that javascript is always passing by value - but setTimeout must mess
this up.

Javascript doesn't have a regular sleep function. Otherwise, I could
use that.

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