You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When fetching data from static image, it might be nice to give users more control over the response type. For example:
importmbClientfrom"@mapbox/mapbox-sdk";importStaticImagefrom"@mapbox/mapbox-sdk/services/static";constclient=mbClient({accessToken: "..."});conststaticImageService=StaticImage(client);staticImageService.getStaticImage({ ... }).send({responseType: 'blob'}).then(res=>{// do something with res});
I poked around the code and didn't find any way to override the response type. I'm happy to send a PR for this. LMK 👍
The text was updated successfully, but these errors were encountered:
When fetching data from static image, it might be nice to give users more control over the response type. For example:
I poked around the code and didn't find any way to override the response type. I'm happy to send a PR for this. LMK 👍
The text was updated successfully, but these errors were encountered: