[OpenLayers-Users] unselect and delete Features

jj.wag at gmx.de jj.wag at gmx.de
Tue Sep 11 06:27:43 PDT 2012


Hi,

I have added a edit-control to my map and it works fine.
If I select a object I can edit the selected feature.

1.
Now I want to create a function that deselect all features on my layer (before I parse it to WKT), but this doesn't work:

function unselectFeatures(){
   polylayer.features.unselectAll();
}

2. 
I want to create a function where I can delete only the selected feature. Is there already a function I can use?


Any idea?
Jo


More information about the Users mailing list