[OpenLayers-Users] unselect and delete Features
jj.wag at gmx.de
jj.wag at gmx.de
Wed Sep 12 00:19:19 PDT 2012
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 <gpktondo at gmail.com>
> An: openlayers-users at lists.osgeo.org
> 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
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
More information about the Users
mailing list