You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
Is it possible to add click listener on feature component?
I saw the way with pointmove method, but I think, the better idea is to connect somehow feature component with basic vue click event.
Hi @ajotka ,
I didn't implement because this can drastically kill performance with big vector layers. So the more efficient way is to listen click event on the map and then find feature by event pixel or coordinate.
forEachFeatureAtPixel
,forEachFeatureAtCoordinate
,forEachLayerAtPixel
helper methods to map component, should return feautre in GeoJSOn format.The text was updated successfully, but these errors were encountered: