cartoview icon indicating copy to clipboard operation
cartoview copied to clipboard

Fail to add a base map in CartoView

Open ddlam opened this issue 5 years ago • 3 comments

Fail to add a base map in CartoView's, Map > Creat Map Screen spot: https://www.photobox.co.uk/my/photo/full?photo_id=501180308419

  • Cartoview Version : 1.8.1
  • Geonode Version : (2.6.x)

Config Files: C:\Program Files (x86)\Cartoview\geonode\package\support\geonode.local_settings C:\Program Files (x86)\Cartoview\geonode\geonode\settings.py

MAP_BASELAYERS = [{
    "source": {"ptype": "gxp_olsource"},
    "type": "OpenLayers.Layer",
    "args": ["No background 11"],
    "name": "background",
    "visibility": False,
    "fixed": True,
    "group":"background"
},
    # {
    #     "source": {"ptype": "gxp_olsource"},
    #     "type": "OpenLayers.Layer.XYZ",
    #     "title": "TEST TILE",
    #     "args": ["TEST_TILE", "http://test_tiles/tiles/${z}/${x}/${y}.png"],
    #     "name": "background",
    #     "attribution": "© TEST TILE",
    #     "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_olsource"},
    "type":"OpenLayers.Layer.WMS",
    "title": "Test Basemap",
    "name": "B20K_shp",
    "group":"background",
    "visibility": True,
    "fixed": True,
    "args":[
      "B20K_shp",
      "http://localhost:4040/geoserver/geonode/wms",
      {
        "layers":["geonode:B20K_shp"],
        "format":"image/png",
        "tiled": True,
        "tilesOrigin": [835000, 824000]
      },
      {"buffer": 0}
    ]
}

The default basemap of geonode is OpenStreetMap. It cannot be changed from the config files. How is it possible to make a new base map in CartoView?

ddlam avatar Oct 23 '18 07:10 ddlam

@ahmednosman

hishamkaram avatar Oct 25 '18 14:10 hishamkaram

could you post screenshot of error page or logs of apache ?

hishamkaram avatar Nov 01 '18 10:11 hishamkaram

The log doesn't show any clue. The config file changed nothing.

===apache access.log === ::1 - - [02/Nov/2018:09:43:29 +0800] "GET / HTTP/1.1" 200 8678 ::1 - - [02/Nov/2018:09:43:55 +0800] "GET /static/lib/css/assets.min.css?v=2.8 HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:43:55 +0800] "GET /static/geonode/css/ext-compatibility.css?v=2.8 HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:43:55 +0800] "GET /static/cartoview/img/edit.png HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:43:55 +0800] "GET /static/cartoview/css/custom.css HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:43:55 +0800] "GET /static/geonode/css/ux-all.css?v=2.8 HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:43:55 +0800] "GET /static/autocomplete_light/style.css HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:43:55 +0800] "GET /static/geonode/css/base.css?v=2.8 HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:43:55 +0800] "GET /static/geonode/js/utils/utils.js?v=2.8 HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:43:55 +0800] "GET /static/autocomplete_light/autocomplete.js HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:43:55 +0800] "GET /static/autocomplete_light/django_admin.js HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:43:55 +0800] "GET /static/lib/js/assets.min.js?v=2.8 HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:43:55 +0800] "GET /static/geonode/js/base/base.js?v=2.8 HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:43:55 +0800] "GET /static/geonode/css/font-awesome.min.css HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:43:55 +0800] "GET /static/autocomplete_light/widget.js HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:43:55 +0800] "GET /static/autocomplete_light/addanother.js HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:43:55 +0800] "GET /static/autocomplete_light/text_widget.js HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:43:55 +0800] "GET /static/cartoview/img/layers.png HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:43:55 +0800] "GET /static/cartoview/img/map.png HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:43:55 +0800] "GET /static/geonode/fonts/fontawesome-webfont.woff2?v=4.7.0 HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:43:55 +0800] "GET /static/cartoview/slider/dist/AppSlider.bundle.js?v=1.8.1 HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:43:55 +0800] "GET /static/autocomplete_light/remote.js HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:43:55 +0800] "GET /static/cartoview/img/app.png HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:43:55 +0800] "GET /jsi18n/ HTTP/1.1" 200 3014 ::1 - - [02/Nov/2018:09:43:55 +0800] "GET /static/geonode/fonts/lato_regular.ttf HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:43:55 +0800] "GET /static/geonode/fonts/lato_bold.ttf HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:43:55 +0800] "GET /static/geonode/fonts/lato_light.ttf HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:43:55 +0800] "GET /static/cartoview/img/background.png HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:43:55 +0800] "GET /static/cartoview/img/cartoview-logo-text-white.png HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:43:55 +0800] "GET /lang.js HTTP/1.1" 200 2302 ::1 - - [02/Nov/2018:09:43:55 +0800] "GET /static/cartoview/img/icon.png HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:43:55 +0800] "GET /api/featured/ HTTP/1.1" 200 129 ::1 - - [02/Nov/2018:09:43:55 +0800] "GET /api/featured/?resource_type=app&featured=true HTTP/1.1" 200 129 ::1 - - [02/Nov/2018:09:44:04 +0800] "GET /geoserver/ows?service=wms&version=1.3.0&request=GetCapabilities?access_token=aKfDQPCQVYxL9Fozap8o6OddhNJNfk HTTP/1.1" 200 545 ::1 - - [02/Nov/2018:09:44:03 +0800] "POST /account/login/?next=/ HTTP/1.1" 302 - ::1 - - [02/Nov/2018:09:44:05 +0800] "GET / HTTP/1.1" 200 8847 ::1 - - [02/Nov/2018:09:44:05 +0800] "GET /jsi18n/ HTTP/1.1" 200 3014 ::1 - - [02/Nov/2018:09:44:05 +0800] "GET /lang.js HTTP/1.1" 200 2302 ::1 - - [02/Nov/2018:09:44:05 +0800] "GET /api/featured/?resource_type=app&featured=true HTTP/1.1" 200 129 ::1 - - [02/Nov/2018:09:44:05 +0800] "GET /api/featured/ HTTP/1.1" 200 129 ::1 - - [02/Nov/2018:09:44:14 +0800] "GET /maps/new HTTP/1.1" 200 7192 ::1 - - [02/Nov/2018:09:44:15 +0800] "GET /static/geoexplorer/externals/GeoExt/resources/css/geoext-all.css?v=2.8 HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:15 +0800] "GET /static/geoexplorer/externals/GeoExt/resources/css/gxtheme-gray.css?v=2.8 HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:15 +0800] "GET /static/geoexplorer/theme/ux/colorpicker/color-picker.ux.css?v=2.8 HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:15 +0800] "GET /static/geoexplorer/externals/ext/resources/css/ext-all.css?v=2.8 HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:15 +0800] "GET /static/geoexplorer/externals/PrintPreview/resources/css/printpreview.css?v=2.8 HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:15 +0800] "GET /static/geoexplorer/externals/ext/adapter/ext/ext-base.js?v=2.8 HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:15 +0800] "GET /static/geoexplorer/externals/openlayers/theme/default/style.css?v=2.8 HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:15 +0800] "GET /static/geoexplorer/externals/gxp/src/theme/all.css?v=2.8 HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:15 +0800] "GET /static/geonode/css/geoexplorer/map_geoexplorer.css HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:15 +0800] "GET /static/geonode/js/extjs/GeoNode-mixin.js HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:15 +0800] "GET /static/geonode/js/extjs/Geonode-CatalogueApiSearch.js HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:15 +0800] "GET /static/geoexplorer/theme/app/geoexplorer.css?v=2.8 HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:15 +0800] "GET /static/geonode/js/extjs/GeoNode-GeoExplorer.js HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:15 +0800] "GET /static/geonode/js/utils/thumbnail.js HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:15 +0800] "GET /static/geoexplorer/externals/ext/ext-all.js?v=2.8 HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:15 +0800] "GET /static/geoexplorer/script/GeoExplorer.js?v=2.8 HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:15 +0800] "GET /static/geoexplorer/externals/GeoExt/resources/css/popup.css HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:15 +0800] "GET /static/geoexplorer/externals/GeoExt/resources/css/symbolizercolumn.css HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:15 +0800] "GET /static/geoexplorer/externals/GeoExt/resources/css/layerlegend.css HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:15 +0800] "GET /jsi18n/ HTTP/1.1" 200 3014 ::1 - - [02/Nov/2018:09:44:15 +0800] "GET /lang.js HTTP/1.1" 200 2302 ::1 - - [02/Nov/2018:09:44:15 +0800] "GET /static/geoexplorer/externals/ext/resources/images/default/form/trigger.gif HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:15 +0800] "GET /static/geoexplorer/externals/ext/resources/images/default/layout/mini-left.gif HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:15 +0800] "GET /static/geoexplorer/externals/ext/resources/images/default/layout/mini-bottom.gif HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:15 +0800] "GET /static/geoexplorer/externals/ext/resources/images/default/panel/white-top-bottom.gif HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:15 +0800] "GET /static/geoexplorer/externals/ext/resources/images/default/layout/mini-right.gif HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:15 +0800] "GET /static/geoexplorer/externals/ext/resources/images/gray/panel/tool-sprites.gif HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:16 +0800] "GET /static/geoexplorer/externals/ext/resources/images/default/layout/mini-top.gif HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:16 +0800] "GET /static/geoexplorer/externals/ext/resources/images/default/dd/drop-no.gif HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:16 +0800] "GET /static/geoexplorer/externals/gxp/src/theme/img/silk/add.png HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:16 +0800] "GET /static/geoexplorer/externals/ext/resources/images/default/button/arrow.gif HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:16 +0800] "GET /static/geoexplorer/externals/gxp/src/theme/img/silk/delete.png HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:16 +0800] "GET /static/geoexplorer/externals/gxp/src/theme/img/silk/wrench.png HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:16 +0800] "GET /static/geoexplorer/externals/gxp/src/theme/img/silk/palette.png HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:16 +0800] "GET /static/geoexplorer/externals/gxp/src/theme/img/geosilk/pan.png HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:16 +0800] "GET /static/geoexplorer/externals/gxp/src/theme/img/silk/magnifier_zoom_out.png HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:16 +0800] "GET /static/geoexplorer/externals/gxp/src/theme/img/silk/magnifier_zoom_in.png HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:16 +0800] "GET /static/geoexplorer/externals/gxp/src/theme/img/silk/magnifier.png HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:16 +0800] "GET /static/geoexplorer/externals/gxp/src/theme/img/silk/arrow_right.png HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:16 +0800] "GET /static/geoexplorer/externals/gxp/src/theme/img/silk/arrow_left.png HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:16 +0800] "GET /static/geoexplorer/externals/gxp/src/theme/img/silk/arrow_inout.png HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:16 +0800] "GET /static/geoexplorer/theme/app/img/silk/map.png HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:16 +0800] "GET /static/geoexplorer/externals/gxp/src/theme/img/silk/printer.png HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:16 +0800] "GET /static/geoexplorer/externals/gxp/src/theme/img/silk/information.png HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:16 +0800] "GET /static/geoexplorer/externals/gxp/src/theme/img/silk/find.png HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:16 +0800] "GET /static/geoexplorer/externals/ext/resources/images/default/grid/col-move-top.gif HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:16 +0800] "GET /static/geoexplorer/externals/ext/resources/images/default/grid/col-move-bottom.gif HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:16 +0800] "GET /static/geoexplorer/externals/ext/resources/images/default/grid/page-last-disabled.gif HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:16 +0800] "GET /static/geoexplorer/externals/ext/resources/images/default/grid/page-first-disabled.gif HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:16 +0800] "GET /static/geoexplorer/externals/ext/resources/images/default/grid/page-prev-disabled.gif HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:16 +0800] "GET /static/geoexplorer/externals/ext/resources/images/default/grid/page-next-disabled.gif HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:16 +0800] "GET /static/geoexplorer/externals/gxp/src/theme/img/geosilk/ruler.png HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:16 +0800] "GET /static/geoexplorer/externals/ext/resources/images/default/button/s-arrow-noline.gif HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:16 +0800] "GET /static/geoexplorer/externals/gxp/src/theme/img/silk/pencil_add.png HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:16 +0800] "GET /static/geoexplorer/theme/app/img/silk/door_out.png HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:16 +0800] "GET /static/geoexplorer/externals/ext/resources/images/default/s.gif HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:16 +0800] "GET /api/layers/?_dc=1541123056041 HTTP/1.1" 200 803 ::1 - - [02/Nov/2018:09:44:16 +0800] "GET /geoserver/pdf/info.json HTTP/1.1" 200 437 127.0.0.1 - - [02/Nov/2018:09:44:20 +0800] "GET /api/users/ HTTP/1.1" 200 144 127.0.0.1 - - [02/Nov/2018:09:44:21 +0800] "GET /api/roles HTTP/1.1" 200 54 ::1 - - [02/Nov/2018:09:44:16 +0800] "GET /geoserver/wms?SERVICE=WMS&REQUEST=GetCapabilities&TILED=true&VERSION=1.1.1 HTTP/1.1" 200 7576 ::1 - - [02/Nov/2018:09:44:24 +0800] "GET /static/geoexplorer/externals/ext/resources/images/default/qtip/tip-anchor-sprite.gif HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:24 +0800] "GET /static/geoexplorer/externals/gxp/src/theme/img/silk/map.png HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:24 +0800] "GET /static/geoexplorer/externals/ext/resources/images/default/tree/arrows.gif HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:29 +0800] "GET /static/geoexplorer/externals/ext/resources/images/default/shadow-lr.png HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:29 +0800] "GET /static/geoexplorer/externals/ext/resources/images/default/shadow-c.png HTTP/1.1" 304 - ::1 - - [02/Nov/2018:09:44:29 +0800] "GET /static/geoexplorer/externals/ext/resources/images/default/shadow.png HTTP/1.1" 304 -

===apache error.log=== [Fri Nov 02 09:20:08.456000 2018] [ssl:warn] [pid 3036:tid 360] AH01906: www.example.com:555:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Fri Nov 02 09:20:08.456000 2018] [ssl:warn] [pid 3036:tid 360] AH01909: www.example.com:555:0 server certificate does NOT include an ID which matches the server name [Fri Nov 02 09:20:08.768000 2018] [ssl:warn] [pid 3036:tid 360] AH01906: www.example.com:555:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Fri Nov 02 09:20:08.768000 2018] [ssl:warn] [pid 3036:tid 360] AH01909: www.example.com:555:0 server certificate does NOT include an ID which matches the server name [Fri Nov 02 09:20:08.783600 2018] [wsgi:warn] [pid 3036:tid 360] mod_wsgi: Compiled for Python/2.7.9+. [Fri Nov 02 09:20:08.783600 2018] [wsgi:warn] [pid 3036:tid 360] mod_wsgi: Runtime using Python/2.7.12. [Fri Nov 02 09:20:08.783600 2018] [mpm_winnt:notice] [pid 3036:tid 360] AH00455: Apache/2.4.16 (Win32) OpenSSL/1.0.1p mod_wsgi/4.4.10 Python/2.7.12 configured -- resuming normal operations [Fri Nov 02 09:20:08.783600 2018] [mpm_winnt:notice] [pid 3036:tid 360] AH00456: Apache Lounge VC11 Server built: Jul 12 2015 10:56:48 [Fri Nov 02 09:20:08.783600 2018] [core:notice] [pid 3036:tid 360] AH00094: Command line: 'C:\Program Files (x86)\Cartoview\apache24\bin\httpd.exe -d C:/Program Files (x86)/Cartoview/Apache24' [Fri Nov 02 09:20:08.783600 2018] [mpm_winnt:notice] [pid 3036:tid 360] AH00418: Parent: Created child process 4444 [Fri Nov 02 09:20:09.831800 2018] [ssl:warn] [pid 4444:tid 252] AH01906: www.example.com:555:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Fri Nov 02 09:20:09.831800 2018] [ssl:warn] [pid 4444:tid 252] AH01909: www.example.com:555:0 server certificate does NOT include an ID which matches the server name [Fri Nov 02 09:20:10.050200 2018] [ssl:warn] [pid 4444:tid 252] AH01906: www.example.com:555:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Fri Nov 02 09:20:10.050200 2018] [ssl:warn] [pid 4444:tid 252] AH01909: www.example.com:555:0 server certificate does NOT include an ID which matches the server name [Fri Nov 02 09:20:10.050200 2018] [wsgi:warn] [pid 4444:tid 252] mod_wsgi: Compiled for Python/2.7.9+. [Fri Nov 02 09:20:10.050200 2018] [wsgi:warn] [pid 4444:tid 252] mod_wsgi: Runtime using Python/2.7.12. [Fri Nov 02 09:20:10.190600 2018] [mpm_winnt:notice] [pid 4444:tid 252] AH00354: Child: Starting 64 worker threads.

===screen shot=== https://holland.pk/uptow/i4/d3647e224ab426f5ba1f1c6fd6ef533e.png

ddlam avatar Nov 02 '18 01:11 ddlam