Hey, OpenLayers unloads itself properly when the page unloads (except for some known memory leaks). If you want to unload a map instance manually, you should call map.destroy().
Regards, Andreas. On Mon, May 2, 2011 at 6:09 PM, Janis Elmeris <[email protected]> wrote: > 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", for example, it seems that it is already called by > something. > > I'm looking something similar to Google Maps' GUnload, which is supposed to > be run upon page unload event - is there something similar needed for > OpenLayers? > > Thanks! > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
