diff client/src/components/map/layers.js @ 3641:32d7bb1afdc9 configuration

client: configuration: support wms services with nested layers
author Markus Kottlaender <markus@intevation.de>
date Wed, 12 Jun 2019 16:10:25 +0200
parents f3102fa16a69
children fb8a53c7c6d3
line wrap: on
line diff
--- 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({