[OpenLayers-Users] Releasing memory

Janis Elmeris janis.elmeris at intelligentsystems.lv
Mon May 2 12:09:47 EDT 2011


Hello!

OpenLayers.Map has three functions that look like being used for freeing 
memory:
destroy(), unloadDestroy(), updateSizeDestroy().

Am I supposed to explicitly call them or not? From the description of 
"unloadDestroy" 
<http://dev.openlayers.org/docs/files/OpenLayers/Map-js.html#OpenLayers.Map.unloadDestroy>, 
for example, it seems that it is already called by something.

I'm looking something similar to Google Maps' GUnload 
<http://code.google.com/intl/lv/apis/maps/documentation/javascript/v2/reference.html#GUnload>, 
which is supposed to be run upon page unload event - is there something 
similar needed for OpenLayers?

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110502/7e992d6b/attachment.html


More information about the Users mailing list