diff --git a/examples/select-features.html b/examples/select-features.html new file mode 100644 index 0000000000..c7640d8514 --- /dev/null +++ b/examples/select-features.html @@ -0,0 +1,22 @@ +--- +layout: example.html +title: Select Features +shortdesc: Example of using the Select interaction. +docs: > + Choose between Single-click, Click, Hover and Alt+Click as the event type for selection in the combobox below. When using Single-click or Click you can hold do Shift key to toggle the feature in the selection.

+

Note: when Single-click is used double-clicks won't select features. This in contrast to Click, where a double-click will both select the feature and zoom the map (because of the DoubleClickZoom interaction). Note that Single-click is less responsive than Click because of the delay it uses to detect double-clicks.

+

In this example, a listener is registered for the Select interaction's select event in order to update the selection status above. +tags: "select, vector" +--- +

+
+ + +  0 selected features +