1
0
Fork 0
mirror of https://github.com/Findus23/POI-Schiltern.git synced 2024-09-11 06:33:46 +02:00

use tracestack map

This commit is contained in:
Lukas Winkler 2023-12-16 18:18:04 +01:00
parent a461f5f679
commit 297466fe8b
Signed by: lukas
GPG key ID: 54DE4D798D244853

View file

@ -12,7 +12,7 @@ document.addEventListener('DOMContentLoaded', function () {
const OpenStreetMapMapnik = L.tileLayer('https://maps.lw1.at/tiles/1.0.0/osm/GLOBAL_MERCATOR/{z}/{x}/{y}.png', {
maxZoom: 19,
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>'
}).addTo(map);
});
const BasemapATbasemap = L.tileLayer("https://maps.lw1.at/tiles/1.0.0/basemap/GLOBAL_MERCATOR/{z}/{x}/{y}.{format}", {
maxZoom: 19,
attribution: 'Datenquelle: <a href="https://www.basemap.at">basemap.at</a>',
@ -40,6 +40,13 @@ document.addEventListener('DOMContentLoaded', function () {
maxZoom: 20,
attribution: '<a href="https://github.com/cyclosm/cyclosm-cartocss-style/releases" title="CyclOSM - Open Bicycle render">CyclOSM</a> | Map data: &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
});
const Tracestack = L.tileLayer(
'https://maps.lw1.at/tiles/1.0.0/tracestack/webmercator_hq/{z}/{x}/{y}.png', {
maxZoom: 18,
attribution: 'Data: © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap contributors</a>, <a href="https://worldcover2021.esa.int">ESA WorldCover</a>; Maps © <a href="https://www.tracestrack.com/">Tracestrack</a>'
}
)
Tracestack.addTo(map);
let LeafIcon = L.Icon.extend({
options: {
iconAnchor: [16, 35],
@ -69,7 +76,8 @@ document.addEventListener('DOMContentLoaded', function () {
});
let mapLayers = {
// "Leer": blankLayer,
'Standard': OpenStreetMapMapnik,
'Standard': Tracestack,
'Klassik': OpenStreetMapMapnik,
"Geländekarte": CyclOSM,
// "Hell": Forte,
// "Einfach": Piano,