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

How to get draw events from vector tile features #528

Open
safe-bug opened this issue Dec 27, 2022 · 1 comment
Open

How to get draw events from vector tile features #528

safe-bug opened this issue Dec 27, 2022 · 1 comment

Comments

@safe-bug
Copy link

safe-bug commented Dec 27, 2022

Hello

I want to get the draw event when every feature of the vector tile is drawn. For example when I move the map, the points that are shown on the map fire a draw event so I can get their details. How is it possible in Carto?

Thanks

@mtehver
Copy link
Contributor

mtehver commented Jan 5, 2023

Hi. There is no such event. What you can perhaps do, is to register your custom MapEventListener instance, monitor onMapInteraction events and then based on the view parameters, query relevant tiles using VectorTileSearchService. This querying should be done in a background thread.

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

No branches or pull requests

2 participants