I have a problem ( How to stop features to redraw unwillingly in OpenLayers ) that might be solved by aborting the beforefeatureremoved or beforefeaturesremoved event.
What I would like to to is to stop the layer from refreshing (removing and the adding again) features from a vector layer. If I for example make a javscript error in those methods the features isn't removed or refreshed. But causing a javascripts error causes other issues so I hope that there is a controlled way of doing this in Openlayers
I have tried the
layer.events.on({
'beforefeatureremoved':function(evt){
OpenLayers.Event.stop(evt);
}
});
But it doesnt seem to do anything, Im I
Br Mike