Skip to content

Commit

Permalink
Fixed documentation to use only MAP_BASELAYERSOURCES
Browse files Browse the repository at this point in the history
  • Loading branch information
ingenieroariel committed Sep 15, 2011
1 parent 4a335a2 commit 7110599
Showing 1 changed file with 9 additions and 21 deletions.
30 changes: 9 additions & 21 deletions docs/source/deploy/production.rst
Expand Up @@ -30,21 +30,13 @@ Adding layers from Google, Bing and other providers
Bing
++++

Get an API key from Microsoft at http://bingmapsportal.com/ and place it in ``local_settings.py``, for example::

BING_API_KEY="zxcxzcXAWdqwdQWWQEDzxcxz"

Copy the ``MAP_BASELAYERSOURCES`` dictionary from ``settings.py`` into ``local_settings.py`` and add the following snippet::

"bing":{
"ptype":"gxp_bingsource",
"apiKey": BING_API_KEY
}

Add the following to ``MAP_BASELAYERS``::
Get an API key from Microsoft at http://bingmapsportal.com/ and place it in ``local_settings.py``. Add the following to ``MAP_BASELAYERS``::

},{
"source":"bing",
"source": {
"ptype":"gxp_bingsource",
"apiKey": "YOUR_BING_API"
},
"group":"background",
"name":"Aerial",
"visibility": False,
Expand All @@ -59,17 +51,13 @@ Get an API key from Google at http://code.google.com/apis/maps/signup.html and p

GOOGLE_API_KEY="zxcxzcXAWdqwdQWWQEDzxcxz"

Copy the ``MAP_BASELAYERSOURCES`` dictionary from ``settings.py`` into ``local_settings.py`` and add the following snippet::
Copy the ``MAP_BASELAYERS`` dictionary from ``settings.py`` into ``local_settings.py`` and add the following snippet::

"google":{
},{
"source": {
"ptype":"gxp_googlesource",
"apiKey": GOOGLE_API_KEY
}

Add the following to ``MAP_BASELAYERS``::

},{
"source":"google",
},
"group":"background",
"name":"SATELLITE",
"visibility": False,
Expand Down

0 comments on commit 7110599

Please sign in to comment.