add ign fr plan layer

This commit is contained in:
vcoppe
2024-07-24 12:09:45 +02:00
parent bfb812d79a
commit cd9086013c
2 changed files with 21 additions and 1 deletions

View File

@@ -127,7 +127,24 @@ export const basemaps: { [key: string]: string | Style; } = {
source: 'ignBe',
}],
},
ignFrPlan: 'https://data.geopf.fr/annexes/ressources/vectorTiles/styles/PLAN.IGN/classique.json',
ignFrPlan: {
version: 8,
sources: {
ignFrPlan: {
type: 'raster',
tiles: ['https://data.geopf.fr/wmts?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&TILEMATRIXSET=PM&TILEMATRIX={z}&TILECOL={x}&TILEROW={y}&LAYER=GEOGRAPHICALGRIDSYSTEMS.PLANIGNV2&FORMAT=image/png&STYLE=normal'],
tileSize: 256,
maxzoom: 19,
attribution: 'IGN-F/Géoportail'
}
},
layers: [{
id: 'ignFrPlan',
type: 'raster',
source: 'ignFrPlan',
}],
},
ignFrTopo: 'https://data.geopf.fr/annexes/ressources/vectorTiles/styles/PLAN.IGN/classique.json',
ignFrScan25: {
version: 8,
sources: {
@@ -511,6 +528,7 @@ export const basemapTree: LayerTreeType = {
},
france: {
ignFrPlan: true,
ignFrTopo: true,
ignFrScan25: true,
ignFrSatellite: true,
},
@@ -746,6 +764,7 @@ export const defaultBasemapTree: LayerTreeType = {
},
france: {
ignFrPlan: false,
ignFrTopo: false,
ignFrScan25: false,
ignFrSatellite: false,
},

View File

@@ -256,6 +256,7 @@
"swisstopoSatellite": "swisstopo Satellite",
"ignBe": "IGN Topo",
"ignFrPlan": "IGN Plan",
"ignFrTopo": "IGN Topo",
"ignFrScan25": "IGN SCAN25",
"ignFrSatellite": "IGN Satellite",
"ignEs": "IGN",