comparison 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
comparison
equal deleted inserted replaced
4021:b10f210af325 4022:efe0904b1d45
241 }), 241 }),
242 new ImageLayer({ 242 new ImageLayer({
243 id: "INLANDECDIS", 243 id: "INLANDECDIS",
244 label: "Inland ECDIS chart Danube", 244 label: "Inland ECDIS chart Danube",
245 visible: true, 245 visible: true,
246 source: new ImageSource({ 246 source: null
247 preload: 1,
248 url: store.state.application.config.ecdis_wms_url,
249 crossOrigin: "anonymous",
250 params: JSON.parse(store.state.application.config.ecdis_wms_params)
251 })
252 }), 247 }),
253 new ImageLayer({ 248 new ImageLayer({
254 id: "WATERWAYAREA", 249 id: "WATERWAYAREA",
255 label: "Waterway Area", 250 label: "Waterway Area",
256 maxResolution: 100, 251 maxResolution: 100,