Make Mapbox GL access token optional
CramericaIndustries opened this issue · 3 comments
CramericaIndustries commented
When I try to initialize the map without Mapbox access token I'm getting this error message:
You should provide a Mapbox GL access token as a token option.
However if you are hosting your own tiles and map styles (like I do), no access token is required by mapbox-gl.js to run.
jgravois commented
you can pass any old dummy token you want.
if you want to open a PR to make the parameter optional, it'd be welcome.