You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe the accessToken: attribute in the config is used only when you want to override the access token in your environment variable for a particular layer.
Perhaps this design could be more explicit. Ideally, I imagine a solution that loads modules dynamically, by using RequireJS. It seems like it would be a significant refactor, but worth it!
Agreed, this is a little akward the way that MAPBOX_TOKEN is required for the Mapbox JS to be loaded. The docs in CONFIG.md don't really explain this properly.
In our local flavor's config.yml I have
But, the accessToken wasn't being passed through, resulting in the error
L.mapboxGL is not a function
.The workaround was to add the token string to the settings.py:
+MAPBOX_TOKEN = env.get('MAPBOX_TOKEN', '[string]')
The text was updated successfully, but these errors were encountered: