[GeoNode-users] Base Map for geonode 2.4

Annalisa Schiavon annalisa.schiavon at gmail.com
Fri Jun 14 05:07:15 PDT 2019


Hi all,
I'd like to add a basemap with reliefs, such as Outdoors of Thunderforest
https://www.thunderforest.com/maps/outdoors/ or of Mapbox to my maps in
geonode 2.4.
I tried to update local_settings.py, but I must have done something wrong.
I've added this rows:

ALT_OSM_BASEMAPS = True
THUNDERFOREST_BASEMAPS = True

# my variable
TF_API_KEY = '+++++++++++++++++++'

and than:

MAP_BASELAYERS = [{
    "source": {
        "ptype": "gxp_wmscsource",
        "url": GEOSERVER_URL + "wms",
        "restUrl": "/gs/rest"
     }
  },{
    "source": {"ptype": "gxp_olsource"},
    "type":"OpenLayers.Layer",
    "args":["No background"],
    "visibility": False,
    "fixed": True,
    "group":"background"
  }, {
    "source": {"ptype": "gxp_olsource"},
    "type":"OpenLayers.Layer.OSM",
    "args":["OpenStreetMap"],
    "visibility": True,
    "fixed": True,
    "group":"background"
  }, {
    "source": {"ptype": "gxp_olsource"},
    "type":"OpenLayers.Layer.OSM",
    "args":["Landscape",
       ["https://tile.thunderforest.com/landscape/{z}/{x}/{y}.png?apikey="
+ TF_API_KEY]],
    "visibility": True,
    "fixed": True,
    "group":"background"
  }, {


But this doesn't work.
Than I tried to add a new server in a map, and instead of a WMS, I chose
TMS type, adding an url like:

https://tile.thunderforest.com/landscape/{z}/{x}/{y}.png?apikey=***************************

But It is wrong. What is the correct procedure? Any suggestions? Is it
possible to add a ZXY service to geonode v.2.4? I'm not familiar with this
service!
Alternatively, there are other basemap with reliefs to use in a simple way?

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20190614/3138813b/attachment.html>


More information about the geonode-users mailing list