add OpenTopoMap support

This commit is contained in:
Kasper D. Fischer 2020-07-15 22:37:39 +02:00
parent 414d330aea
commit dacfa92970
2 changed files with 14 additions and 0 deletions

View File

@ -158,6 +158,13 @@ $(document).ready(function() {
attribution: 'Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community' attribution: 'Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community'
}).addTo(map); }).addTo(map);
break; break;
case 'opentopo': // add OpenTopoMap tile layer https://opentopomap.org/
map = L.map('map', { zoomControl: false, worldCopyJump: true }).setView(config['map']['centerDefault'], config['map']['zoomDefault']);
L.tileLayer('https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png',
{
attribution: 'Kartendaten: &copy; <a href="https://openstreetmap.org">OpenStreetMap</a> contributors, SRTM | Kartendarstellung: &copy; <a href="http://opentopomap.org/">OpenTopoMap</a> (<a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>)'
}).addTo(map);
break;
case 'osmde': // add OpenStreetMap.DE tile layer, default case 'osmde': // add OpenStreetMap.DE tile layer, default
null; null;
default: default:

View File

@ -158,6 +158,13 @@ $(document).ready(function() {
attribution: 'Tiles &copy; Esri &mdash; Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community' attribution: 'Tiles &copy; Esri &mdash; Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community'
}).addTo(map); }).addTo(map);
break; break;
case 'opentopo': // add OpenTopoMap tile layer https://opentopomap.org/
map = L.map('map', { zoomControl: false, worldCopyJump: true }).setView(config['map']['centerDefault'], config['map']['zoomDefault']);
L.tileLayer('https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png',
{
attribution: 'Kartendaten: &copy; <a href="https://openstreetmap.org">OpenStreetMap</a> contributors, SRTM | Kartendarstellung: &copy; <a href="http://opentopomap.org/">OpenTopoMap</a> (<a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>)'
}).addTo(map);
break;
case 'osmde': // add OpenStreetMap.DE tile layer, default case 'osmde': // add OpenStreetMap.DE tile layer, default
null; null;
default: default: