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

Zooming in with the mouse often doesn't load the vector layer #16

Open
lonvia opened this issue Oct 10, 2021 · 3 comments
Open

Zooming in with the mouse often doesn't load the vector layer #16

lonvia opened this issue Oct 10, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@lonvia
Copy link
Member

lonvia commented Oct 10, 2021

When I zoom into the map by pressing the Shift key and drawing a rectangle on the map with a mouse, the vector layers often don't get loaded correctly. Tore produce

I suspect that it happens when I hit a zoom level for which there are no vector tiles defined. Instead of loading the ones for the next lower level, it simply does nothing.

@AntoJvlt AntoJvlt added the bug Something isn't working label Nov 4, 2021
@AntoJvlt
Copy link
Collaborator

The example you gave with Praha works very well for me, do you still have the issue? Maybe this should be also tried with the new Svelte version

@lonvia
Copy link
Member Author

lonvia commented Jan 14, 2022

I still see it with the svelte version. Does this link work for you in your local test development: http://localhost:5000/#map=18.22/50.09/14.42&layer=addr_street_wrong_name

@AntoJvlt
Copy link
Collaborator

Indeed this link doesn't work but the problem is not the same as the one you mentioned initially (I think). Here the problem is that the zoom level is way too big and we don't have vector tiles for them, we stop generating vector tiles before when we reach a zoom level where we display all the features anyways (no clusters). This means that the data get displayed if you zoom from top to bottom and not if you arrive on the page directly to a very big zoom level.

This is a bit tricky to fix, because depending on the global features repartition we don't know to which zoom level the last vector tile is generated for this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants