Hi,
thanks for the answer.
I try this:
function deselectFeature(){
var modiyCtrl = new OpenLayers.Control.SelectFeature(poly);
map.addControl(modiyCtrl);
modiyCtrl.activate();
modiyCtrl.unselectFeature(poly.features[0]);
}
In Firbug comes the massage TypeError: modiyCtrl.unselectFeature is not a
function
Jo
-------- Original-Nachricht --------
> Datum: Tue, 11 Sep 2012 07:16:29 -0700 (PDT)
> Von: Tondo <[email protected]>
> An: [email protected]
> Betreff: Re: [OpenLayers-Users] unselect and delete Features
> Hi
>
> Maybe you could use modiyCtrl.unselectFeature(feature); To delete feature
> simple get selected remove it. If you want to perform WFS transaction, set
> feature.state to OpenLayers.State.DELETE.
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.n6.nabble.com/unselect-and-delete-Features-tp5001081p5001097.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users