You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/10/24 12:23:22 UTC

[GitHub] [incubator-superset] lhsvobodaj commented on issue #7272: Mapbox data visualization doesn't work

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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org