[OpenLayers-Users] Releasing memory
Andreas Hocevar
ahocevar at opengeo.org
Tue May 3 03:03:51 EDT 2011
Hi,
here are the tickets I'm aware of that deal with memory leaks:
http://trac.osgeo.org/openlayers/ticket/2258
http://trac.osgeo.org/openlayers/ticket/2566
http://trac.osgeo.org/openlayers/ticket/2950
Regards,
Andreas.
On Mon, May 2, 2011 at 7:19 PM, Janis Elmeris
<janis.elmeris at intelligentsystems.lv> wrote:
> Thanks!
>
> So if I have one map that is open from the beginning to the end when the
> page is closed, I just do nothing in this regard.
>
> What about the known memory leaks, is there some article or discussion you
> could point me to?
>
> Janis
>
>
>
> On 2011.05.02. 19:50, Andreas Hocevar wrote:
>
> 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
> <janis.elmeris at intelligentsystems.lv> 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
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
More information about the Users
mailing list