origo-map / multiselect-plugin

Multiselect plugin for Origo
MIT License
2 stars 10 forks source link

Toggle selection with click on feature #3

Closed jokd closed 3 years ago

jokd commented 3 years ago

It would be nice to be able to deselect a feature by clicking on it in the map instead of in the infowindow.

asemoller commented 3 years ago

Use ctrl+click!

jokd commented 3 years ago

Would be nice to do it on touch devices as well, in some applications at least.

jokd commented 3 years ago

Added the toggleSelectOnClick option as an featureinfoOptions in https://github.com/origo-map/origo/pull/1028 When true, you'll add/remove feature when clicking. Can be useful when there's just a few selectable layers.

asemoller commented 3 years ago

@jokd - Good improvement!