Skip to main content
4 events
when toggle format what by license comment
Dec 22, 2016 at 14:12 comment added ahocevar map.forEachFeatureAtPixel is the way to go. It is optimized for performance, so you should not need to worry about that. If you want to do animations, you might want to look into a style function that renders features returned by the current forEachFeatureAtPixel call differently.
Dec 21, 2016 at 11:05 comment added Ulas Thank you Andreas, it just works. I wonder how that escaped my attention. About the vector layer option: I did that in another case, but is there a better way to work out an onclick event other than map.forEachFeatureAtPixel? And I also do small animations on mouse over, but that is dismissible for the sake of performance.
Dec 21, 2016 at 11:00 vote accept Ulas
Dec 21, 2016 at 9:25 history answered ahocevar CC BY-SA 3.0