-
Notifications
You must be signed in to change notification settings - Fork 165
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
Support authentication tokens (through TransformRequest) #2299
Comments
I have the same problem, when I try to draw an image which requires an authentication token in header on the Mapbox through SourceType like ImageSource, VectorSource or RasterSource, then it didn't work and showed this error "[Error, maps-core]: {}[Style]: Failed to load source image_source_102: Invalid value. at offset 0". But it can work with an image that can be opened free on a browser. While Android can run normally with that requirement. |
Hi there
Pay attention that |
New Feature
Some layers may require authentication tokens to be properly displayed in Mapbox. With
mapbox-gl-js
, we can useTransformRequest
to do that easily (see https://docs.mapbox.com/mapbox-gl-js/api/properties/#requestparameters). Looking at the documentation, this does not seem possible inmapbox-maps-ios
.Why
Without this, we cannot display layers that require some form of authentication (e.g. bearer tokens passed in headers).
The text was updated successfully, but these errors were encountered: