[OpenLayers-Users] Map Destroy Call generating error

Raj Chundur rajchundur at gmail.com
Wed Jun 11 00:53:24 EDT 2008


I have incorporated openlayers in a rich internet application with the map
inside a dialog window that can be opened and closed without page refresh.I
have been getting some heavy memory leaks even though I had dereferenced the
openayers map object. In order to avoid memory leak and ensure that the
openlayers map is destroyed when the dialog hosting the openlayers map is
closed i tried calling the map.destroy. However the call to map.destroy
fails at two places. One is on the overview map which has a single layer of
type openlayers.layer.image. So removed the overview conrol. The second is
on  a tiled kamap layer though other kamap layers are destroyed without
error. (The base layer is of type openlayers.layer.iamge type)) Trying to
debug leads upto the clear grid on the httprequest..js where the error
happens with "element has no property". Have spent considerable time trying
to figure out the cause. Any help?

RC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080611/d08196a9/attachment.html


More information about the Users mailing list