-
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, rename or remove map.loaded() method #5052
Comments
Thanks for the report @gpbmike – Whoops! I spoke too soon. I didn't realize that |
Oo 🕵️♀️ @mollymerp I would guess this applies to video sources too, then. |
Also what's the difference between |
@gpbmike |
This seems to be more of an API naming/documentation issue that an actual bug, so I renamed/labeled it accordingly. |
Closing in favor of #6708 to centralize the discussion there. |
mapbox-gl-js version: 39.1
Steps to Trigger Behavior
Add a canvas source / layer to the map.
Expected Behavior
map.loaded()
eventually returns true.Actual Behavior
map.loaded()
never returns true.Additional Details
I have created a codepen to demonstrate.
https://codepen.io/gpbmike/pen/NvqaZm
We're using
map.loaded()
to determine when certain actions can be performed that require the map to be loaded, see mapbox-gl-draw. We noticed that if you add a canvas source to the map, themap.loaded()
will never change totrue
.The text was updated successfully, but these errors were encountered: