[OpenLayers-Users] Re: Modify single feature

Tue Topholm tt at sugee.dk
Tue Jul 12 09:39:57 EDT 2011


Solved with unselect for unselecting

and modifyfeature standalone

--

Med venlig hilsen / Kind regards

Tue Topholm
Sugee
Tlf: +45 32 13 32 32
W: http://www.sugee.dk



2011/7/12 Tue Topholm <tt at sugee.dk>:
> I have this code:
>
> var select = new OpenLayers.Control.SelectFeature([wfs]);
> map.addControl(select);
> select.activate();
>
> wfs.events.on({
>                featureselected: function(event) {
>
> },
>                featureunselected: function(e){}});
>
>
> How can I trigger the modifyfeature only on the selected feature, and
> not the whole layer?
>
> And how can I trig the unselect feature, so it isn't selected anymore?
>
> I have tried looking at the docs, can't seem to find it.
>
> --
>
> Med venlig hilsen / Kind regards
>
> Tue Topholm
> Sugee
> Tlf: +45 32 13 32 32
> W: http://www.sugee.dk
>


More information about the Users mailing list