lhsvobodaj commented on issue #7272: Mapbox data visualization doesn't work
URL: 
https://github.com/apache/incubator-superset/issues/7272#issuecomment-545892627
 
 
   In the 
[docker-compose.yml](https://github.com/apache/incubator-superset/blob/786d7706e7cbe1bc266db47c8b4865b4c94b1d58/contrib/docker/docker-compose.yml#L44)
 file, environment block, you should add the Mapbox environment variable 
`MAPBOX_API_KEY: {your_mapbox_api_token}`. Once I included this I was able to 
see the maps when using a deck.gl visualization. I tested loading the deck.gl 
examples provided when the flag `SUPERSET_LOAD_EXAMPLES` is enabled.
   
   If you check the 
[config.py](https://github.com/apache/incubator-superset/blob/786d7706e7cbe1bc266db47c8b4865b4c94b1d58/superset/config.py#L376)
 file, the token is obtained from the environment.
   
   Another option could be to add the variable in the Dockerfile. However, this 
option will require you to specify the variable at build time, which means if 
you decide to use a different token you will have to rebuild the image.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to