-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Tiles wrongly placed after switching view #49
Comments
@Enkosz Have you tried calling I suspect it's not properly triggering a redraw after |
Yep, I tried both in the Tile component and also some more "heavy" approaches like invalidating the Leaflet map instance when switching to another Layer but nothing. I couldn't find the reason why it happens randomly and not for every tile. |
Yes, if you can create a reproducer, that'd be great. |
Thanks for your patience. I got stuck in 9-5, here's a sandbox but it's based on Stadia's tutorial for it and will need a valid API key to fetch vector stuff: https://codesandbox.io/s/festive-joliot-tsp3rl?file=/src/AppVector.js. |
@lseelenbinder Hey hey, got any news? |
I'm having the same problem. Did you find a solution? |
Hello there,
I've been trying to use
maplibre-gl
withreact-leaflet
to display satellite and roadmap layers from an external provider. I noticed a random behaviour when switching from one to another.As you can notice from the screenshot below, when switching from satellite to roadmap the map / layers are shifted to the left and not correctly loading. Interacting with the map however will make it work again.
React Leaflet tile layer:
versions:
The text was updated successfully, but these errors were encountered: