Add SwissTopo tile layers (#422)

This commit is contained in:
Phylor 2021-06-02 20:33:48 +02:00 committed by GitHub
parent 208b363e5e
commit bad8b53cf4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 51 additions and 1 deletions

View file

@ -78,6 +78,8 @@ BR.LayersConfig = L.Class.extend({
BR.layerIndex['1069'].geometry = BR.confLayers.europeGeofabrik; BR.layerIndex['1069'].geometry = BR.confLayers.europeGeofabrik;
BR.layerIndex['OpenStreetMap.CH'].geometry = BR.confLayers.switzerlandPadded; BR.layerIndex['OpenStreetMap.CH'].geometry = BR.confLayers.switzerlandPadded;
BR.layerIndex['swisstopo-landeskarte'].geometry = BR.confLayers.switzerlandPadded;
BR.layerIndex['swisstopo-aerial'].geometry = BR.confLayers.switzerlandPadded;
BR.layerIndex['1017'].geometry = BR.confLayers.osmapaPl; BR.layerIndex['1017'].geometry = BR.confLayers.osmapaPl;
}, },

View file

@ -137,6 +137,14 @@ BR.confLayers.getPropertyOverrides = function() {
'mapUrl': 'https://osm.ch/#{zoom}/{lat}/{lon}', 'mapUrl': 'https://osm.ch/#{zoom}/{lat}/{lon}',
'worldTiles': true 'worldTiles': true
}, },
'swisstopo-landeskarte': {
'country_code': 'CH',
'mapUrl': 'https://map.geo.admin.ch/?swisssearch={lat},{lon}',
},
'swisstopo-aerial': {
'country_code': 'CH',
'mapUrl': 'https://map.geo.admin.ch/?swisssearch={lat},{lon}',
},
'topplus-open': { 'topplus-open': {
'country_code': 'DE', 'country_code': 'DE',
'mapUrl': 'http://www.geodatenzentrum.de/geodaten/gdz_rahmen.gdz_div?gdz_spr=deu&gdz_user_id=0&gdz_akt_zeile=5&gdz_anz_zeile=1&gdz_unt_zeile=41', 'mapUrl': 'http://www.geodatenzentrum.de/geodaten/gdz_rahmen.gdz_div?gdz_spr=deu&gdz_user_id=0&gdz_akt_zeile=5&gdz_anz_zeile=1&gdz_unt_zeile=41',

View file

@ -39,7 +39,13 @@ BR.confLayers.tree = {
'osmbe-nl', 'osmbe-nl',
] ]
}, },
{
'CH': [
'OpenStreetMap.CH', 'OpenStreetMap.CH',
'swisstopo-landeskarte',
'swisstopo-aerial',
]
},
'topplus-open', 'topplus-open',
{ {
'IL': [ 'IL': [

View file

@ -0,0 +1,17 @@
{
"geometry": null,
"properties": {
"attribution": {
"html": "© <a href='https://www.swisstopo.ch/' target='_blank'>Swisstopo</a>"
},
"id": "swisstopo-aerial",
"max_zoom": 28,
"name": "Swisstopo Aerial Photographs",
"type": "tms",
"url": "https://wmts.geo.admin.ch/1.0.0/ch.swisstopo.swissimage/default/current/3857/{z}/{x}/{y}.jpeg",
"layers": "web",
"format": "image/jpeg"
},
"type": "Feature"
}

View file

@ -0,0 +1,17 @@
{
"geometry": null,
"properties": {
"attribution": {
"html": "© <a href='https://www.swisstopo.ch/' target='_blank'>Swisstopo</a>"
},
"id": "swisstopo",
"max_zoom": 28,
"name": "Swisstopo Landeskarte",
"type": "tms",
"url": "https://wmts.geo.admin.ch/1.0.0/ch.swisstopo.pixelkarte-farbe/default/current/3857/{z}/{x}/{y}.jpeg",
"layers": "web",
"format": "image/jpeg"
},
"type": "Feature"
}