docs: add a faq about mapbox api key (#968)

Also add it to sample config

Fix #952
This commit is contained in:
Riccardo Magliocchetti 2016-08-17 17:04:39 +02:00 committed by Maxime Beauchemin
parent ac512ef731
commit a029eaa451
2 changed files with 10 additions and 0 deletions

View File

@ -54,3 +54,10 @@ increase the default (50), you can specify the timeout when starting the
web server with the ``-t`` flag, which is expressed in seconds. web server with the ``-t`` flag, which is expressed in seconds.
``caravel runserver -t 300`` ``caravel runserver -t 300``
Why is the map not visible in the mapbox visualization?
-------------------------------------------------------
You need to register to mapbox.com, get an API key and configure it as
``MAPBOX_API_KEY`` in ``caravel_config.py``.

View File

@ -141,6 +141,9 @@ of the parameters you can copy / paste in that configuration module: ::
# Flask-WTF flag for CSRF # Flask-WTF flag for CSRF
CSRF_ENABLED = True CSRF_ENABLED = True
# Set this API key to enable Mapbox visualizations
MAPBOX_API_KEY = ''
This file also allows you to define configuration parameters used by This file also allows you to define configuration parameters used by
Flask App Builder, the web framework used by Caravel. Please consult Flask App Builder, the web framework used by Caravel. Please consult
the `Flask App Builder Documentation the `Flask App Builder Documentation