From 90920d5870535dd0ba23a9216998fc9ab520b266 Mon Sep 17 00:00:00 2001 From: nobohan Date: Mon, 14 Jun 2021 22:33:21 +0200 Subject: [PATCH] add more map layers --- patches/frontend/src/conf/map.config.ts | 137 +++++++++++++++++++++++- sandbox/wmts/index.html | 132 ++++++++++++++++++++++- 2 files changed, 265 insertions(+), 4 deletions(-) diff --git a/patches/frontend/src/conf/map.config.ts b/patches/frontend/src/conf/map.config.ts index 3f29b3b..67d0363 100644 --- a/patches/frontend/src/conf/map.config.ts +++ b/patches/frontend/src/conf/map.config.ts @@ -67,7 +67,142 @@ export const MAP_CONFIG = { wms: true, attribution: '© SPW' }, - + { + name: "Carte des principaux types de sols", + maxZoom: 20, + layer: "//geoservices.wallonie.be/arcgis/services/SOL_SOUS_SOL/CNSW__PRINC_TYPES_SOLS/MapServer/WMSServer?", + layers: '0', + wms: true, + attribution: '© SPW' + }, + { + name: "Carte du dépôt de la guerre (1865 - 1880)", + maxZoom: 20, + layer: "//geoservices.wallonie.be/arcgis/services/CARTES_ANCIENNES/DEPOT_GUERRE_1865_1880/MapServer/WMSServer?", + layers: '0', + wms: true, + attribution: '© SPW' + }, + { + name: "Carte Ferraris (1770-1778)", + maxZoom: 20, + layer: "//geoservices.wallonie.be/arcgis/services/CARTES_ANCIENNES/FERRARIS/MapServer/WMSServer?", + layers: '0', + wms: true, + attribution: '© SPW' + }, + { + name: "Carte Vandermaelen (1846-1854)", + maxZoom: 20, + layer: "//geoservices.wallonie.be/arcgis/services/CARTES_ANCIENNES/VDML/MapServer/WMSServer?", + layers: '0', + wms: true, + attribution: '© SPW' + }, + { + name: "Hydrographie", + maxZoom: 20, + layer: "//geoservices.wallonie.be/arcgis/services/EAU/RHW/MapServer/WMSServer?", + layers: ['1', '2', '3', '4', '5','6'], + wms: true, + attribution: '© SPW' + }, + { + name: "Limites administratives", + maxZoom: 20, + layer: "//ccff02.minfin.fgov.be/geoservices/arcgis/services/INSPIRE/AU_wms/MapServer/WMSServer?", + layers: ['1', '2', '3', '4'], + wms: true, + attribution: '© CadGIS' + }, + { + name: "Masque forestier", + maxZoom: 20, + layer: "//geoservices.wallonie.be/arcgis/services/FORET/FORET/MapServer/WMSServer?", + layers: '0', + wms: true, + attribution: '© SPW' + }, + { + name: "MNS (hauteur de la végétation)", + maxZoom: 20, + layer: "//geoservices.wallonie.be/arcgis/services/RELIEF/WALLONIE_MNS_2013_2014_HILLSHADE/MapServer/WMSServer?", + layers: '0', + wms: true, + attribution: '© SPW' + }, + { + name: "MNT (relief)", + maxZoom: 20, + layer: "//geoservices.wallonie.be/arcgis/services/RELIEF/WALLONIE_MNT_2013_2014_HILLSHADE/MapServer/WMSServer?", + layers: '0', + wms: true, + attribution: '© SPW' + }, + { + name: "Pentes (relief)", + maxZoom: 20, + layer: "//geoservices.wallonie.be/arcgis/services/RELIEF/WALLONIE_MNP_CLASSE_2013_2014/MapServer/WMSServer?", + layers: '0', + wms: true, + attribution: '© SPW' + }, + { + name: "Natura 2000", + maxZoom: 20, + layer: "//geoservices.wallonie.be/arcgis/services/FAUNE_FLORE/NATURA2000/MapServer/WMSServer?", + layers: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10'], + wms: true, + attribution: '© SPW' + }, + { + name: "Parcellaire agricole anonyme 2019", + maxZoom: 20, + layer: "//geoservices.wallonie.be/arcgis/services/AGRICULTURE/SIGEC_PARC_AGRI_ANON__2019/MapServer/WMSServer?", + layers: '0', + wms: true, + attribution: '© SPW' + }, + { + name: "PICC (topographie)", + maxZoom: 20, + layer: "//geoservices.wallonie.be/arcgis/services/TOPOGRAPHIE/PICC_VDIFF/MapServer/WMSServer?", + layers: ['1', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29'], + wms: true, + attribution: '© SPW' + }, + { + name: "Régions agricoles", + maxZoom: 20, + layer: "//geoservices.wallonie.be/arcgis/services/LIMITES/LIMITES_REGIONSAGRICOLES/MapServer/WMSServer?", + layers: '0', + wms: true, + attribution: '© SPW' + }, + { + name: "Voiries vicinales désaffectées (SNCB - SNCV)", + maxZoom: 20, + layer: "//geoservices.wallonie.be/arcgis/services/MOBILITE/LIGNES_SNCB_SNCV_DESAFFECT/MapServer/WMSServer?", + layers: '0', + wms: true, + attribution: '© SPW' + }, + { + name: "Carte d'occupation du sol", + maxZoom: 20, + layer: "//geoservices.wallonie.be/arcgis/services/SOL_SOUS_SOL/WALOUS_OCCUPATION_SOL/MapServer/WMSServer?", + layers: '0', + wms: true, + attribution: '© SPW' + }, + { + name: "Carte d'utilisation du sol", + maxZoom: 20, + layer: "//geoservices.wallonie.be/arcgis/services/SOL_SOUS_SOL/WALOUS_UTILISATION_SOL/MapServer/WMSServer?", + layers: '0', + 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 6cc685a..637354b 100644 --- a/sandbox/wmts/index.html +++ b/sandbox/wmts/index.html @@ -72,11 +72,137 @@ minZoom: 8 }), + SOLS2: L.tileLayer.wms('https://geoservices.wallonie.be/arcgis/services/SOL_SOUS_SOL/CNSW__PRINC_TYPES_SOLS/MapServer/WMSServer?', { + attribution: '© SPW', + layers: '0', + format: 'image/png', + transparent: true, + }), + + DEPOT_GUERRE: L.tileLayer.wms('https://geoservices.wallonie.be/arcgis/services/CARTES_ANCIENNES/DEPOT_GUERRE_1865_1880/MapServer/WMSServer?', { + attribution: '© SPW', + layers: '0', + format: 'image/png', + transparent: true, + }), + + FERRARIS: L.tileLayer.wms('https://geoservices.wallonie.be/arcgis/services/CARTES_ANCIENNES/FERRARIS/MapServer/WMSServer?', { + attribution: '© SPW', + layers: '0', + format: 'image/png', + transparent: true, + }), + + VDML: L.tileLayer.wms('https://geoservices.wallonie.be/arcgis/services/CARTES_ANCIENNES/VDML/MapServer/WMSServer?', { + attribution: '© SPW', + layers: '0', + format: 'image/png', + transparent: true, + }), + + RHW: L.tileLayer.wms('https://geoservices.wallonie.be/arcgis/services/EAU/RHW/MapServer/WMSServer?', { + attribution: '© SPW', + layers: ['1', '2', '3', '4', '5','6'], + format: 'image/png', + transparent: true, + }), + + LIMITES_COMMUNALES: L.tileLayer.wms('http://ccff02.minfin.fgov.be/geoservices/arcgis/services/INSPIRE/AU_wms/MapServer/WMSServer?', { + attribution: '© CadGIS', + layers: ['1', '2', '3', '4'], + format: 'image/png', + transparent: true, + }), + + MASQUE_FORET: L.tileLayer.wms('https://geoservices.wallonie.be/arcgis/services/FORET/FORET/MapServer/WMSServer?', { + attribution: '© SPW', + layers: '0', + format: 'image/png', + transparent: true, + }), + + MNS: L.tileLayer.wms('https://geoservices.wallonie.be/arcgis/services/RELIEF/WALLONIE_MNS_2013_2014_HILLSHADE/MapServer/WMSServer?', { + attribution: '© SPW', + layers: '0', + format: 'image/png', + transparent: true, + }), + + MNT: L.tileLayer.wms('https://geoservices.wallonie.be/arcgis/services/RELIEF/WALLONIE_MNT_2013_2014_HILLSHADE/MapServer/WMSServer?', { + attribution: '© SPW', + layers: '0', + format: 'image/png', + transparent: true, + }), + + PENTE: L.tileLayer.wms('https://geoservices.wallonie.be/arcgis/services/RELIEF/WALLONIE_MNP_CLASSE_2013_2014/MapServer/WMSServer?', { + attribution: '© SPW', + layers: '0', + format: 'image/png', + transparent: true, + }), + + NATURA2000: L.tileLayer.wms('https://geoservices.wallonie.be/arcgis/services/FAUNE_FLORE/NATURA2000/MapServer/WMSServer?', { + attribution: '© SPW', + layers: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10'], + format: 'image/png', + transparent: true, + }), + + PARC: L.tileLayer.wms('https://geoservices.wallonie.be/arcgis/services/AGRICULTURE/SIGEC_PARC_AGRI_ANON__2019/MapServer/WMSServer?', { + attribution: '© SPW', + layers: ['0', '1', '2'], + format: 'image/png', + transparent: true, + }), + + PICC: L.tileLayer.wms('https://geoservices.wallonie.be/arcgis/services/TOPOGRAPHIE/PICC_VDIFF/MapServer/WMSServer?', { + attribution: '© SPW', + layers: ['1', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29'], + format: 'image/png', + transparent: true, + }), + + REGION_AGRI: L.tileLayer.wms('https://geoservices.wallonie.be/arcgis/services/LIMITES/LIMITES_REGIONSAGRICOLES/MapServer/WMSServer?', { + attribution: '© SPW', + layers: '0', + format: 'image/png', + transparent: true, + }), + + LIGNES_FER: L.tileLayer.wms('https://geoservices.wallonie.be/arcgis/services/MOBILITE/LIGNES_SNCB_SNCV_DESAFFECT/MapServer/WMSServer?', { + attribution: '© SPW', + layers: '0', + format: 'image/png', + transparent: true, + }), + + WALOUS: L.tileLayer.wms('https://geoservices.wallonie.be/arcgis/services/SOL_SOUS_SOL/WALOUS_OCCUPATION_SOL/MapServer/WMSServer?', { + attribution: '© SPW', + layers: '0', + format: 'image/png', + transparent: true, + }), + + WALOUS_USE: L.tileLayer.wms('https://geoservices.wallonie.be/arcgis/services/SOL_SOUS_SOL/WALOUS_UTILISATION_SOL/MapServer/WMSServer?', { + attribution: '© SPW', + layers: ['1', '3', '4', '5', '6', '7', '8', '9'], + format: 'image/png', + transparent: true, + }), + + NITRATES: L.tileLayer.wms('https://geoservices.wallonie.be/arcgis/services/EAU/NITRATES/MapServer/WMSServer?', { + attribution: '© SPW', + layers: '0', + format: 'image/png', + transparent: true, + }), + + + + - //https://wxs.ign.fr/{apiKey}/geoportail/wmts?&REQUEST=GetTile&SERVICE=WMTS - //&VERSION=1.0.0&STYLE=normal&TILEMATRIXSET=PM&FORMAT=image/jpeg - //&LAYER={layerName}&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}", WMTS: L.tileLayer(