add WMS layers

This commit is contained in:
nobohan 2021-06-14 14:51:27 +02:00
parent 57e91bf9e0
commit 0d2c86b52c
2 changed files with 36 additions and 1 deletions

View File

@ -40,6 +40,15 @@ export const MAP_CONFIG = {
wms: true, wms: true,
attribution: '© SPW' 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", name: "Ancienneté des forêts actuelles",
minZoom: 13, minZoom: 13,
@ -49,6 +58,16 @@ export const MAP_CONFIG = {
wms: true, wms: true,
attribution: '© SPW' 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], CENTER: [46.52863469527167, 2.43896484375],
ZOOM_LEVEL: 6, ZOOM_LEVEL: 6,

View File

@ -48,7 +48,7 @@
transparent: true, 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', attribution: '© SPW',
layers: '1', layers: '1',
format: 'image/png', format: 'image/png',
@ -56,6 +56,22 @@
minZoom: 13 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 //https://wxs.ign.fr/{apiKey}/geoportail/wmts?&REQUEST=GetTile&SERVICE=WMTS