-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
"Map#is*Loaded" methods #3691
Labels
Comments
Hey @lucaswoj! Going to start working on a few gl-js starter tasks next week. This one seems like a good place to start :) |
So happy to hear you'll be working on this @sarahkleins. Looking forward to working with you to 🚢 this feature! Let me know if there's anything I can do to help. |
Expanding the scope of this ticket to include
|
This will tie in nicely w the refactoring of our events system #3970 😂 |
stepankuzmin
added a commit
to stepankuzmin/mapbox-gl-js
that referenced
this issue
Jan 21, 2017
stepankuzmin
added a commit
to stepankuzmin/mapbox-gl-js
that referenced
this issue
Jan 21, 2017
…or instead of firing event mapbox#3691
stepankuzmin
added a commit
to stepankuzmin/mapbox-gl-js
that referenced
this issue
Jan 23, 2017
anandthakker
pushed a commit
that referenced
this issue
Jan 23, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is a need for a public API that determines whether or not a source is loaded in throttling calls to
GeoJSONSource#setData
. I often find myself usingmap.style.sourceCache[sourceId].loaded()
for this purpose. It would be nice to provide a public API instead:Map#isSourceLoaded(sourceId: string): boolean
Map#isSourceLoaded(sourceId)
Map#isStyleLoaded()
Map#isTilesLoaded()
/Map#isTileLoaded(coord)
/ ...Map#loaded
->Map#isLoaded
/Map#isEverythingLoaded
/ ...The text was updated successfully, but these errors were encountered: