Skip to content
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

Make Mapbox GL access token optional #117

Closed
CramericaIndustries opened this issue Mar 4, 2020 · 3 comments
Closed

Make Mapbox GL access token optional #117

CramericaIndustries opened this issue Mar 4, 2020 · 3 comments

Comments

@CramericaIndustries
Copy link

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
Copy link
Collaborator

jgravois commented Mar 4, 2020

you can pass any old dummy token you want.

example: https://github.com/Esri/esri-leaflet-vector/blob/8a9b6056b02d17cdfb22d0ffa5fba94e7ea7e45c/src/Util.js#L12-L15

if you want to open a PR to make the parameter optional, it'd be welcome.

@JanLoebel
Copy link
Contributor

Should be fixed with:
#119

@jgravois
Copy link
Collaborator

released as v0.0.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants