[OpenLayers-Users] Select feature for destroy a function
Eric Lemoine
eric.lemoine at camptocamp.com
Tue Aug 4 08:45:28 EDT 2009
On Tue, Aug 4, 2009 at 1:36 PM, Walter Lorenzetti<lorenzetti at gis3w.it> wrote:
> Hi All,
>
> for delete(destroy) a feature I use a SelectFeature Control where
> onSelect event I destroy the feature...:
>
> OpenLayers.Control.SelectFeature(IG.layers.editing_layer,{onSelect:IG.actions.confRemoveFeat});
>
> on IG.actions.confRemoveFeat I use a confirm dialog box for feature
> deleting...
> on 'Yes' option I destroy the feature but on 'No' option I've a problem.
> The problem is that the feature is highlighted again.. so for to
> unhighlight the feature I've to click outside it...
>
> I didn't find a method to unselect the feature by a method... on 'No'
>
> Someone can help me?
Hi. What if you call control.unselect(feature) where control is the
select feature control?
--
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