# HG changeset patch # User Markus Kottlaender # Date 1560348625 -7200 # Node ID 32d7bb1afdc901b6694772bc0c81ef5d735f50e4 # Parent 158d55ec20429b26f9adfe11f83bf89f42ab81e1 client: configuration: support wms services with nested layers diff -r 158d55ec2042 -r 32d7bb1afdc9 client/src/components/map/layers.js --- a/client/src/components/map/layers.js Wed Jun 12 12:16:52 2019 +0200 +++ b/client/src/components/map/layers.js Wed Jun 12 16:10:25 2019 +0200 @@ -230,9 +230,9 @@ visible: true, source: new ImageSource({ preload: 1, - url: "https://service.d4d-portal.info/wms/", + url: store.state.application.config.ecdis_wms_url, crossOrigin: "anonymous", - params: { LAYERS: "d4d", VERSION: "1.1.1", TILED: true } + params: JSON.parse(store.state.application.config.ecdis_wms_params) }) }), new ImageLayer({ diff -r 158d55ec2042 -r 32d7bb1afdc9 client/src/components/systemconfiguration/MapLayers.vue --- a/client/src/components/systemconfiguration/MapLayers.vue Wed Jun 12 12:16:52 2019 +0200 +++ b/client/src/components/systemconfiguration/MapLayers.vue Wed Jun 12 16:10:25 2019 +0200 @@ -13,7 +13,7 @@ class="form-control" placeholder="https://..." @input="lookupWMSCapabilities()" - v-model="config.ecdis_url" + v-model="config.ecdis_wms_url" />