Hi all,
I have a mashup that overlays several .gif images using
GGroundOverlay. It animates between them by use of timers and layer
[n].show() and layer[n].hide(). It works great!
On the server, these images change periodically. I need my javascript
to reload the .gif images into the overlays on a periodic basis
without the user having to refresh the whole browser page.
(1) Does GGroundOverlay have a method to reload a layer with a
specified image? There doesn't seem to be one among the documented
methods.
(2) I tried the following sequence:
map.removeOverlay(layer[n]);
delete layer[n];
...
layer[n] = new GGroundOverlay(...);
map.addOverlay(layer[n]);
This also appears to work great, except Firefox leaks memory every
time it is executed. I left the page open overnight and Firefox
bloated to 500MB. It appears something in the Maps API is holding
onto references to overlay data that should be garbage collected.
Any suggestions would be appreciated. Thanks!
Curt
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---