Mercurial > gemma
diff client/src/components/map/layers.js @ 4022:efe0904b1d45
Change of ECDIS no longer requires reload
When the maps are initialized, the source of th ECDIS is retireved from the store.
When a change of the configuration is made, the store is updated.
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Mon, 22 Jul 2019 13:28:04 +0200 |
parents | 8775bea8042a |
children | a76a6b26e327 |
line wrap: on
line diff
--- a/client/src/components/map/layers.js Mon Jul 22 11:20:20 2019 +0200 +++ b/client/src/components/map/layers.js Mon Jul 22 13:28:04 2019 +0200 @@ -243,12 +243,7 @@ id: "INLANDECDIS", label: "Inland ECDIS chart Danube", visible: true, - source: new ImageSource({ - preload: 1, - url: store.state.application.config.ecdis_wms_url, - crossOrigin: "anonymous", - params: JSON.parse(store.state.application.config.ecdis_wms_params) - }) + source: null }), new ImageLayer({ id: "WATERWAYAREA",