Mercurial > gemma
changeset 3030:3524bbc5067e
Use dingle tile WMS for ECDIS Layer and Max resolutions for some vector layers.
-> Increases performance.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 12 Apr 2019 12:51:26 +0200 |
parents | 81c2e561fe03 |
children | f99f0cbb843f |
files | client/src/components/map/layers.js |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/map/layers.js Fri Apr 12 12:49:43 2019 +0200 +++ b/client/src/components/map/layers.js Fri Apr 12 12:51:26 2019 +0200 @@ -69,11 +69,11 @@ visible: true, source: new OSM() }), - new TileLayer({ + new ImageLayer({ id: "INLANDECDIS", label: "Inland ECDIS chart Danube", visible: true, - source: new TileWMS({ + source: new ImageSource({ preload: 1, url: "https://service.d4d-portal.info/wms/", crossOrigin: "anonymous", @@ -146,6 +146,8 @@ label: "LOS 1 Fairway Dimensions", visible: false, style: styles.fwd1, + maxResolution: 80, + minResolution: 0, source }); })(), @@ -166,6 +168,8 @@ label: "LOS 2 Fairway Dimensions", visible: false, style: styles.fwd2, + maxResolution: 80, + minResolution: 0, source }); })(), @@ -186,6 +190,8 @@ label: "LOS 3 Fairway Dimensions", visible: true, style: styles.fwd3, + maxResolution: 80, + minResolution: 0, source }); })(),