On Nov 25, 9:44 am, "[email protected]"
<[email protected]> wrote:
> > All your variables are local in scope to a function, including 'map'.
>
> 'map' is global since it's created in the parent function. And,
> sometimes, it works !

You create another local variable called "map" in the .ready function,
and use that instead of your global variable.

This is one reason why a link is important. We can't see the context
of your code snippet.

On Nov 25, 9:55 am, "[email protected]"
<[email protected]> wrote:
> Could 'map.isLoaded()' help me ?

See the documentation. 
http://code.google.com/apis/maps/documentation/reference.html#GMap2.isLoaded
says that "isLoaded()" verifies that the map is correctly initialised,
not that everything has finished loading.

Andrew

--

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