I'm trying to add the ArcGIS map service to my project in GeoNode but I'm failing to do so. I've read around and I saw information that says I need to make a XYZ tile service (something like this: http://services.arcgisonline.com/arcgis/rest/services/USA_Topo_Maps/MapServer/tile/{z}/{y}/{x}. So, in the geonode (django) settings there is this by default:
MAP_BASELAYERS = [{ "source": {"ptype": "gxp_olsource"}, "type": "OpenLayers.Layer", "args": ["No background"], "visibility": False, "fixed": True, "group":"background" }, { "source": {"ptype": "gxp_osmsource"}, "type": "OpenLayers.Layer.OSM", "name": "mapnik", "visibility": True, "fixed": True, "group": "background" }, { "source": {"ptype": "gxp_mapquestsource"}, "name": "osm", "group": "background", "visibility": False }, { "source": {"ptype": "gxp_mapquestsource"}, "name": "naip", "group": "background", "visibility": False }, { "source": {"ptype": "gxp_bingsource"}, "name": "AerialWithLabels", "fixed": True, "visibility": False, "group": "background" }, { "source": {"ptype": "gxp_mapboxsource"}, } This piece of code represent each map that I can use as background. And I'm trying to add the ArcGIS like this>
, { "source": {"ptype": "gxp_arcgisworldtopo", "name": "ArcGIS.Layer.XYZ", "url": "http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}"}, "fixed": True, "visibility": False, "group": "background" } This fails and shows no error (nothing in console or browser), just doesn't show any of the options at all the map viewer is blank.
Anybody have any idea how to do this?
Just for guiding purposes, here is the link to the ArcGIS World Imagery info: http://www.arcgis.com/home/item.html?id=10df2279f9684e4a9f6a7f08febac2a9 and this is the link to the ArGIS REST API: http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer
أكثر...
MAP_BASELAYERS = [{ "source": {"ptype": "gxp_olsource"}, "type": "OpenLayers.Layer", "args": ["No background"], "visibility": False, "fixed": True, "group":"background" }, { "source": {"ptype": "gxp_osmsource"}, "type": "OpenLayers.Layer.OSM", "name": "mapnik", "visibility": True, "fixed": True, "group": "background" }, { "source": {"ptype": "gxp_mapquestsource"}, "name": "osm", "group": "background", "visibility": False }, { "source": {"ptype": "gxp_mapquestsource"}, "name": "naip", "group": "background", "visibility": False }, { "source": {"ptype": "gxp_bingsource"}, "name": "AerialWithLabels", "fixed": True, "visibility": False, "group": "background" }, { "source": {"ptype": "gxp_mapboxsource"}, } This piece of code represent each map that I can use as background. And I'm trying to add the ArcGIS like this>
, { "source": {"ptype": "gxp_arcgisworldtopo", "name": "ArcGIS.Layer.XYZ", "url": "http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}"}, "fixed": True, "visibility": False, "group": "background" } This fails and shows no error (nothing in console or browser), just doesn't show any of the options at all the map viewer is blank.
Anybody have any idea how to do this?
Just for guiding purposes, here is the link to the ArcGIS World Imagery info: http://www.arcgis.com/home/item.html?id=10df2279f9684e4a9f6a7f08febac2a9 and this is the link to the ArGIS REST API: http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer
أكثر...