[OpenLayers-Users] vector layer destroyed twice throws error
Eric Lemoine
eric.lemoine at camptocamp.com
Mon Apr 12 04:37:36 EDT 2010
On Mon, Apr 12, 2010 at 8:13 AM, Chris Green <chris.green at ibstv.co.uk> wrote:
> Hello List
>
>
>
> I am using OL 2.8 and have a vector layer that is populated with features
> via WFS. In my application I need to be able to remove and re-create the
> vector layer repeatedly, which I can perform once only but the second time
> I call layer.detroy() I get the error ‘this div is null’ thrown by the
> getZIndex function in Layer.js.
The error indicates that getZIndex is called on a destroyed layer. Is
it your code that calls getZIndex?
Cheers,
--
Eric Lemoine
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com
More information about the Users
mailing list