[OpenLayers-Users] vector layer destroyed twice throws error
Eric Lemoine
eric.lemoine at camptocamp.com
Mon Apr 12 05:35:09 EDT 2010
On Mon, Apr 12, 2010 at 10:16 AM, Chris Green <chris.green at ibstv.co.uk> wrote:
> Hi Eric
>
> The code I am using (slightly simplified) is below. I am not calling
> getZIndex, I have been assuming that it is called somehow as part of the
> layer.destroy() function
Layer.destroy() doesn't call getZIndex. What calls getZIndex is the
Feature handler (used in the SelectFeature control). Before destroying
the layer you can try to destroy the SelectFeature control attached to
that layer.
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