Hot answers tagged routing
1
With a bit of comparison you can:
detect the point clicked
find the feature closest to this point
use the selectFeatureControl to programatically select this feature
see: http://jsfiddle.net/XfEmn/
(note, I use underscore.js _.min function, you could of course do this with a foor loop etc, the clue is to loop the features and get the one with the ...
1
The Difference Tool should do what you want as @Baltok has suggested.
Just set the streets layer as the input layer and the flood layer as the difference layer.
This should result in a new streets layer but with the flooded area removed. You might want to check this tutorial for more details.
Only top voted, non community-wiki answers of a minimum length are eligible
