[OpenLayers-Users] Modify single feature

Tue Topholm tt at sugee.dk
Tue Jul 12 08:56:12 EDT 2011


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