Closed landonreed closed 7 years ago
Hello,
Yes, this is what is stated in the readme, you just have to pass any string as a token so that the library plays nice with you: https://github.com/mapbox/mapbox-gl-leaflet
Fabien
Ah, thanks for that. Apologies for glossing over.
According to this support article, you can use mapbox-gl with third party tilesets (e.g., Mapzen). Presumably, you wouldn't need a Mapbox
accessToken
in this case because you're not making any Mapbox API calls. However,mapbox-gl-leaflet
chokes if theaccessToken
is not supplied (it will work though if you provide a nonsense string, e.g."THIS_IS_MY_TOKEN"
.I'm working with this in
react-leaflet
, so there's a chance my implementation is causing different results, but I'm fairly certain this is true for the general case.