[OpenLayers-Users] Map Destroy Call generating error
Eric Lemoine
eric.c2c at gmail.com
Tue Jun 24 18:07:05 EDT 2008
On Wed, Jun 11, 2008 at 6:53 AM, Raj Chundur <rajchundur at gmail.com> wrote:
> 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?
Hi Raj, with no example showing the problem it's very unlikely that
you get assistance on the mailing list. Regards,
--
Eric
More information about the Users
mailing list