Using a DragBox interaction to select features.
This example shows how to use a DragBox
interaction to select features. Selected features are added
to the feature overlay of a select interaction (ol.interaction.Select
) for highlighting.
Use SHIFT+drag
to draw boxes.
See the box-selection.js source to see how this is done.