-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
Good day
I would Like to thank you for sharing this great project on github. Unfortunately I am having a lot of trouble adding Satellite images to GEOSHAPE I have tried BING, GOOGLE and MapBox maps but none of them work. I have added the following code to /var/lib/geonode/rogue_geonode/geoshape/local_settings.py
(with the correct API keys):
MAP_BASELAYERS = [
{
"source": {
"ptype": "gxp_wmscsource",
"url": OGC_SERVER['default']['LOCATION'] + "wms",
"restUrl": "/gs/rest",
"name": "local geoserver"
}
},
{
"source": {
"ptype": "gxp_bingsource",
"apiKey": "BING_API_KEY"
},
"name": "AerialWithLabels",
"fixed": True,
"visibility": False,
"group": "background"
},
{
"source": {
"ptype": "gxp_googlesource",
"apiKey": GOOGLE_API_KEY
},
"group": "background",
"name": "SATELLITE",
"visibility": False,
"fixed": True
},
{
"source": {"ptype": "gxp_olsource"},
"type":"OpenLayers.Layer.XYZ",
"args":[
"Mapbox Satellite", ["https://api.mapbox.com/v4/mapbox.satellite/{z}/{x}/{y}.png?access_token=<Token Here>],
{"transitionEffect": "resize","attribution": "© Mapbox © OpenStreetMap © DigitalGlobe"}],
"visibility": True,
"fixed": True,
"group":"background"
},
{
"source": {"ptype": "gxp_osmsource", "name": "OpenStreetMap"},
"type": "OpenLayers.Layer.OSM",
"name": "mapnik",
"title": "OpenStreetMap",
"args": ["OpenStreetMap"],
"visibility": True,
"fixed": True,
"group": "background"
}
]
Any help regrading this issue would be much appreciated
Thank you very much
Metadata
Metadata
Assignees
Labels
No labels