Openlayers 6.4 how to fire select event on every click on the same feature?

575 views Asked by At

See the code in this codesandbox, There are several overlapping icons.

I can click on the icon, and get a of all the overlapping features.

But if I click again on the same icon, no more events are generated.

I could deselect by clicking away, but this is not what I need.

How do I make the on('select' fire on each click?

The reason why I want to do that, is that I have a counter that chooses different feature on each click. Which is possible on google maps, but I can't figure it out on openlayers.

0

There are 0 answers