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
I've found that when I'm trying to use a custom map style.json that uses the mapbox://mapbox.mapbox-terrain-dem-v1 tiles this requires an sku url parameter along with an access_token to be correctly accessed, else a response of 403 is thrown. This limits the use of these tiles for normal and offline use via a custom style.
I've had to use mapbox://mapbox.terrain-rgb instead so Mapbox is missing out on the user session identifier with this approach.
These parameters are correctly added when using a style directly from the Mapbox API.
Solutions could be either
Pass along these url parameters to the custom style for use by the developer
Append parameters with in the SDK to any tile source requests if they need it or not
Append parameters with in the SDK to any tile source requests for only Mapbox tile sources such as mapbox://mapbox.mapbox-terrain-dem-v1 if they are a source form the Mapbox style or a custom style
The text was updated successfully, but these errors were encountered:
Gnative
changed the title
Append sku tokens to any source type url requests that require them.
Append sku tokens to any tile requests that require them.
Jan 22, 2025
Gnative
changed the title
Append sku tokens to any tile requests that require them.
Append sku and access_token to any tile requests that require them.
Jan 22, 2025
Gnative
changed the title
Append sku and access_token to any tile requests that require them.
Append sku and access_token url parameters to any tile requests that require them (raster-dem)
Jan 22, 2025
I've found that when I'm trying to use a custom map style.json that uses the mapbox://mapbox.mapbox-terrain-dem-v1 tiles this requires an sku url parameter along with an access_token to be correctly accessed, else a response of 403 is thrown. This limits the use of these tiles for normal and offline use via a custom style.
I've had to use mapbox://mapbox.terrain-rgb instead so Mapbox is missing out on the user session identifier with this approach.
These parameters are correctly added when using a style directly from the Mapbox API.
Solutions could be either
The text was updated successfully, but these errors were encountered: