Mapbox-gl-js: Use MapBpx GL JS without Access Token

Created on 29 Jul 2019  路  1Comment  路  Source: mapbox/mapbox-gl-js

mapbox-gl-js version: 1.1.1

Question

Is it possible to use MapBox GL JS without Access Token, when own Raster- or Vector Tiles are provided? This library, providing React Components for Mapbox GJ JS, suggests that this is possible.

Display Maps Without A Mapbox Token

It is possible to use the map component without the Mapbox service, if you use another tile source (for example, if you host your own map tiles). You will need a custom Mapbox GL style that points to your own vector tile source, and pass it to ReactMapGL using the mapStyle prop. This custom style must match the schema of your tile source.

Source: https://uber.github.io/react-map-gl/#/Documentation/getting-started/about-mapbox-tokens

This feature further is provided in React Native MapBox GL since v6, see related Issue

Links to related documentation

https://docs.mapbox.com/help/glossary/access-token/

Most helpful comment

Yes, you only have to provide an access token if you use Mapbox vector tile servers.

>All comments

Yes, you only have to provide an access token if you use Mapbox vector tile servers.

Was this page helpful?
0 / 5 - 0 ratings