Add SwissTopo tile layers (#422)
This commit is contained in:
parent
208b363e5e
commit
bad8b53cf4
5 changed files with 51 additions and 1 deletions
|
|
@ -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;
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -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',
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,13 @@ BR.confLayers.tree = {
|
||||||
'osmbe-nl',
|
'osmbe-nl',
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
'OpenStreetMap.CH',
|
{
|
||||||
|
'CH': [
|
||||||
|
'OpenStreetMap.CH',
|
||||||
|
'swisstopo-landeskarte',
|
||||||
|
'swisstopo-aerial',
|
||||||
|
]
|
||||||
|
},
|
||||||
'topplus-open',
|
'topplus-open',
|
||||||
{
|
{
|
||||||
'IL': [
|
'IL': [
|
||||||
|
|
|
||||||
17
layers/extra/swisstopo-aerial.geojson
Normal file
17
layers/extra/swisstopo-aerial.geojson
Normal 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"
|
||||||
|
}
|
||||||
|
|
||||||
17
layers/extra/swisstopo-landeskarte.geojson
Normal file
17
layers/extra/swisstopo-landeskarte.geojson
Normal 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"
|
||||||
|
}
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue