mapbox / mapbox-gl-leaflet

binding from Mapbox GL JS to the Leaflet API
ISC License
522 stars 155 forks source link

Usage with third party tiles #63

Closed landonreed closed 7 years ago

landonreed commented 7 years ago

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 the accessToken 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.

fnicollet commented 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

landonreed commented 7 years ago

Ah, thanks for that. Apologies for glossing over.