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

DeckGlLayer fails to load after changing basemap #190

Open
johanohly opened this issue Aug 9, 2024 · 2 comments
Open

DeckGlLayer fails to load after changing basemap #190

johanohly opened this issue Aug 9, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@johanohly
Copy link

It is very possible that I am just doing something wrong, but using the examples' way of changing the basemap style reactively, and a DeckGlLayer inside of it, the initial loading works with the layer rendered, but when changing the style, the layer gets omitted.
An error also appears in the console:

Uncaught Error: Style is not done loading.
  in DeckGlLayer.svelte
  in MapLibre.svelte
@johanohly
Copy link
Author

I circumvented this by stumbling upon the diffStyleUpdates option, which not only is more efficient and smooth, but also does not even cause the Deck.gl layers to rerender.
I guess I'll leave this issue open until you have time to read it and evaluate if it is even an issue on your side.

Thank you for making such an easy to use wrapper!

@dimfeld
Copy link
Owner

dimfeld commented Aug 19, 2024

Sorry for the late response, haven't had time to work on this project for the last couple of weeks.

I'm glad you found a workaround for now though. But yes, this definitely sounds like something that should be fixed :)

@dimfeld dimfeld added the bug Something isn't working label Aug 19, 2024
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