Skip to content

Commit

Permalink
Add IGNF Scan25 baselayer (requires key) (#643)
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvainavelo authored Sep 28, 2022
1 parent 72a92eb commit 91a03f3
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions js/LayersConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
3 changes: 3 additions & 0 deletions keys.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: '',
};
})();
4 changes: 4 additions & 0 deletions layers/config/overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
1 change: 1 addition & 0 deletions layers/config/tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ BR.confLayers.tree = {
'FR': [
'ignf-aerial',
'ignf-map',
'ignf-scan25',
]
},
{
Expand Down
15 changes: 15 additions & 0 deletions layers/extra/ignf-scan25.geojson
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit 91a03f3

Please sign in to comment.