I have an OpenLayers layer with several vectors on it. I know the OpenLayers Feature ID (e.g. OpenLayers.Feature.Vector_241) and I would like to know how to remove this feature and only this feature?
I have considered deleting them all and then looping through an array to redraw them, but this seems a little inelegant, and long winded.
I have tried a variety of versions of the folllowing code:
layer.removeFeatures( featureID );
And
layer.removeFeatures( [featureID] );
And
layer.removeFeatures( {feature : featureID });
Etc.