When does the map.setStyle() end? #7240
Unanswered
VladimirKalachikhin
asked this question in
Q&A
Replies: 1 comment 5 replies
-
|
Sadly, I've had to resort to polling after each 'styledata' event that checks when isStyleLoaded() returns true. If there's a better answer that works reliably, I'd love to hear it! |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to change the style, and then perform actions that require a ready-made style. What is the right way to do this?
I found that when the
style.loadorstyledataevents are triggered, the map.isStyleLoaded() method return false and the style is not ready for use yet.Beta Was this translation helpful? Give feedback.
All reactions