From 0d2c86b52c7f69da75b355c94391914deb8c63b2 Mon Sep 17 00:00:00 2001 From: nobohan Date: Mon, 14 Jun 2021 14:51:27 +0200 Subject: [PATCH] add WMS layers --- patches/frontend/src/conf/map.config.ts | 19 +++++++++++++++++++ sandbox/wmts/index.html | 18 +++++++++++++++++- 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/patches/frontend/src/conf/map.config.ts b/patches/frontend/src/conf/map.config.ts index 8dc1b88..3f29b3b 100644 --- a/patches/frontend/src/conf/map.config.ts +++ b/patches/frontend/src/conf/map.config.ts @@ -40,6 +40,15 @@ export const MAP_CONFIG = { wms: true, attribution: '© SPW' }, + { + name: "Couverture forestière approximative au 18ème siècle", + minZoom: 13, + maxZoom: 20, + layer: "//geoservices.wallonie.be/arcgis/services/FORET/FORETANC/MapServer/WMSServer?", + layers: '0', + wms: true, + attribution: '© SPW' + }, { name: "Ancienneté des forêts actuelles", minZoom: 13, @@ -49,6 +58,16 @@ export const MAP_CONFIG = { wms: true, attribution: '© SPW' }, + { + name: "Carte des sols", + minZoom: 8, + maxZoom: 20, + layer: "//geoservices.wallonie.be/arcgis/services/SOL_SOUS_SOL/CNSW/MapServer/WMSServer?", + layers: '1', + wms: true, + attribution: '© SPW' + }, + ], CENTER: [46.52863469527167, 2.43896484375], ZOOM_LEVEL: 6, diff --git a/sandbox/wmts/index.html b/sandbox/wmts/index.html index 8807d71..6cc685a 100644 --- a/sandbox/wmts/index.html +++ b/sandbox/wmts/index.html @@ -48,7 +48,7 @@ transparent: true, }), - ANC_FORET: L.tileLayer.wms(' https://geoservices.wallonie.be/arcgis/services/FORET/FORETANC/MapServer/WMSServer?', { + ANC_FORET: L.tileLayer.wms('https://geoservices.wallonie.be/arcgis/services/FORET/FORETANC/MapServer/WMSServer?', { attribution: '© SPW', layers: '1', format: 'image/png', @@ -56,6 +56,22 @@ minZoom: 13 }), + COUV_FORET_ANC: L.tileLayer.wms('https://geoservices.wallonie.be/arcgis/services/FORET/FORETANC/MapServer/WMSServer?', { + attribution: '© SPW', + layers: '0', + format: 'image/png', + transparent: true, + minZoom: 13 + }), + + SOLS: L.tileLayer.wms('https://geoservices.wallonie.be/arcgis/services/SOL_SOUS_SOL/CNSW/MapServer/WMSServer?', { + attribution: '© SPW', + layers: '1', + format: 'image/png', + transparent: true, + minZoom: 8 + }), + //https://wxs.ign.fr/{apiKey}/geoportail/wmts?&REQUEST=GetTile&SERVICE=WMTS