ah ok.. thanks.
On Sep 28, 4:46 am, Rossko <[EMAIL PROTECTED]> wrote:
> > The maps are declared in loadGmap, it is not global. So those objects
> > are destroyed as soon as I am out of the loadGmap scope ?
>
> No not at all, just that your script hasn't kept a 'handle' to them.
>
> Here's an experiment;
> Create a simple map 'local' in a function, with pan/zoom tools, and
> exit it.
>
> Can you you see the map on screen?
> Can you pan and zoom the map?
> How could the map be 'destroyed' ... the maps API is able to
> manipulate it.
>
> You ought to be looking at making your map object global (so that your
> own script can re-use it)
> When you update your map, don't create a new one - clear the old
> overlays and add new ones.
>
> cheers, Ross K
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---