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

MapBox Load Image Synchronously #7360

Closed
rapicastillo opened this issue Oct 4, 2018 · 1 comment
Closed

MapBox Load Image Synchronously #7360

rapicastillo opened this issue Oct 4, 2018 · 1 comment

Comments

@rapicastillo
Copy link

Motivation

In general, would it be possible for us to have ways for asynchronous calls to be able to have sync versions / a sync option? Or at least have it return a promise?

For example, I think just having loadImage return a promise would be great.

@mollymerp
Copy link
Contributor

mollymerp commented Oct 4, 2018

Hi @rapicastillo, thanks for using Mapbox GL. Right now we don't have plans to introduce Promises to this library. You can see discussion about adding a synchronous option for GeoJSONSource#setData at #2275. If you have a feature request, please fill out the associated issue template and open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants