On Tue, Aug 4, 2009 at 1:36 PM, Walter Lorenzetti<[email protected]> 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 : [email protected] http://www.camptocamp.com _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
