Add IGNF Scan25 baselayer (requires key) (#643)

This commit is contained in:
Sylvain 2022-09-28 21:03:04 +02:00 committed by GitHub
parent 72a92eb156
commit 91a03f312c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 0 deletions

View file

@ -89,6 +89,7 @@ BR.LayersConfig = L.Class.extend({
BR.layerIndex['ignf-aerial'].geometry = BR.confLayers.franceBbox;
BR.layerIndex['ignf-map'].geometry = BR.confLayers.franceBbox;
BR.layerIndex['ignf-scan25'].geometry = BR.confLayers.franceBbox;
},
_addLanguageDefaultLayer: function () {

View file

@ -19,5 +19,8 @@
// Mapillary, https://www.mapillary.com/dashboard/developers
mapillary: ``,
// IGN France (for Scan25 base layer), https://geoservices.ign.fr/services-web-issus-des-scans-ign
ignf: '',
};
})();

View file

@ -160,6 +160,10 @@ BR.confLayers.getPropertyOverrides = function() {
'mapUrl': 'https://www.geoportail.gouv.fr/carte?c={lon},{lat}&z={zoom}&l0=GEOGRAPHICALGRIDSYSTEMS.PLANIGNV2::GEOPORTAIL:OGC:WMTS(1)&permalink=yes',
'worldTiles': true // -z7
},
'ignf-scan25': {
'country_code': 'FR',
'mapUrl': 'https://www.geoportail.gouv.fr/carte?c={lon},{lat}&z={zoom}&l0=GEOGRAPHICALGRIDSYSTEMS.MAPS.SCAN25TOUR::GEOPORTAIL:OGC:WMTS(1)&permalink=yes',
},
'OpenStreetMap-turistautak': {
'nameShort': 'OSM Turistautak',
'mapUrl': 'https://turistautak.openstreetmap.hu/?zoom={zoom}&lat={lat}&lon={lon}&layers=0B00F'

View file

@ -51,6 +51,7 @@ BR.confLayers.tree = {
'FR': [
'ignf-aerial',
'ignf-map',
'ignf-scan25',
]
},
{

View file

@ -0,0 +1,15 @@
{
"geometry": null,
"properties": {
"attribution": {
"html": "© <a href='https://www.ign.fr/' target='_blank'>IGN</a>"
},
"id": "ignf-scan25",
"max_zoom": 21,
"name": "IGN France - Carte topographique (Scan25)",
"type": "tms",
"url": "https://wxs.ign.fr/{keys_ignf}/geoportail/wmts?LAYER=GEOGRAPHICALGRIDSYSTEMS.MAPS.SCAN25TOUR&EXCEPTIONS=text/xml&FORMAT=image/jpeg&SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&STYLE=normal&TILEMATRIXSET=PM&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}"
},
"type": "Feature"
}