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

Need an event status identifier push, when I use setStyle(), change the layer #4757

Open
sundayswaimmer opened this issue Sep 25, 2024 · 1 comment
Labels
need more info Further information is requested

Comments

@sundayswaimmer
Copy link

Now there is a scene in the project, when the user switches the map style, we need to redraw some layers on the map. The problem is that none of the event events in maplibregl can tell me that the new layer has been loaded and I can redraw now. I can only deal with this problem by setting a timer. It makes me feel very insecure.

@HarelM
Copy link
Collaborator

HarelM commented Sep 25, 2024

Thanks for taking the time to open this issue.
Please provide more details.
The above statement is very vague and hard to understand, it misses context, motivation, and other relevant information.
There is the style.load event which you can use and idle event too.

@HarelM HarelM added the need more info Further information is requested label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need more info Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants