💄 Switch to CARTO tiles

This commit is contained in:
itskovacs 2025-07-19 12:03:15 +02:00
parent 20517dfe56
commit 606a78a95f

View File

@ -33,12 +33,15 @@ export function createMap(contextMenuItems?: ContextMenuItem[]): L.Map {
.setZoom(10)
.setMaxBounds(bounds);
L.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png", {
maxZoom: 17,
minZoom: 5,
attribution:
'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>',
}).addTo(map);
L.tileLayer(
"https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png",
{
maxZoom: 17,
minZoom: 5,
attribution:
'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>, &copy; <a href="https://carto.com/attributions">CARTO</a>',
},
).addTo(map);
return map;
}