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

A way to determine if features are loading in the tileset #3142

Open
michalgwo opened this issue Jan 14, 2025 · 0 comments
Open

A way to determine if features are loading in the tileset #3142

michalgwo opened this issue Jan 14, 2025 · 0 comments

Comments

@michalgwo
Copy link

Is your feature request related to a problem? Please describe.
When zooming in, new data is being loaded, but there is no way to determine in code if it's loading and when loading is finished. Let's say I have data in my tiles starting from zoom 14. Assuming the app is just opened and data was not loaded previously, when I zoom to 14, and immediately call vectorSource.querySourceFeatures(), it will return an empty list.

Describe the solution you'd like
A function determining if data is loading, for example vectorSource.isDataLoading()

Describe alternatives you've considered
I tried to check style.isFullyLoaded before source.querySourceFeatures(), but it returns true even if the data is loading.

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

1 participant