Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Click event on map, layer and feature #7

Closed
2 of 4 tasks
ghettovoice opened this issue Mar 16, 2017 · 2 comments
Closed
2 of 4 tasks

Click event on map, layer and feature #7

ghettovoice opened this issue Mar 16, 2017 · 2 comments

Comments

@ghettovoice
Copy link
Owner

ghettovoice commented Mar 16, 2017

  • Emit click event in map component.
  • Emit click on layer component.
  • Emit click on feautre component
  • Add forEachFeatureAtPixel, forEachFeatureAtCoordinate, forEachLayerAtPixel helper methods to map component, should return feautre in GeoJSOn format.
@ajotka
Copy link

ajotka commented May 15, 2019

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.

What do you think?

@ghettovoice
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants