-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Clarify documentation for map.loaded(), map.isStyleLoaded() #6708
Comments
I agree that some clarification would be helpful here. My initial assumption was that |
IMHO the important thing to include here is the implications of the current state: can you add sources, can you change paint or layout properties, can you manipulate the state otherwise. |
Related: #5052, which stems from the same confusion over what |
Is there a reference document about a map's lifecycle events? I'd like to know how are
connected on each other during the lifecycle of map. Namely, is such a recursive setTimeout loop needed today? |
A quick example of how I do it, but an
|
mapbox-gl-js version: 0.45.0
Refs #6707
The documentation for
map.loaded()
andmap.isStyleLoaded()
do not make it clear what the difference is between them.It should be clear from reading the docs:
map.loaded() !== map.isStyleLoaded()
The text was updated successfully, but these errors were encountered: