[OpenLayers-Users] Destroy Feature

Eric Lemoine eric.lemoine at camptocamp.com
Fri Dec 30 09:36:28 EST 2011


On Friday, December 30, 2011, Diego Guidi <diegoguidi at gmail.com> wrote:
> assuming the code you posted is ok, try with
> vectors.removeFeatures([end]);

You can also destroy the feature with end.destroy(). This will remove it
from the layer. Note that a destroyed feature cannot be readded to a layer.

-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20111230/d2f44fb7/attachment.html


More information about the Users mailing list