Hi Walter, I don't know the answer to your question, but I have an alternative.
A while ago, I developed a small DeleteFeature control that could resolve your problem. Take a look at this ticket (1), in the lastest patch. I don't think this control will someday make it in the OpenLayers API since it's too simple, but it's still handy anyway. You need to register events (those in the control itself) to actually destroy/commit your features. Regards, Alexandre (1) http://trac.openlayers.org/ticket/1882 Walter Lorenzetti 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? > > Sorry for my bad english > > Thanks in advance > Walter > > -- Alexandre Dubé Mapgears www.mapgears.com _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
