💄 Switch to CARTO tiles
This commit is contained in:
parent
20517dfe56
commit
606a78a95f
@ -33,12 +33,15 @@ export function createMap(contextMenuItems?: ContextMenuItem[]): L.Map {
|
|||||||
.setZoom(10)
|
.setZoom(10)
|
||||||
.setMaxBounds(bounds);
|
.setMaxBounds(bounds);
|
||||||
|
|
||||||
L.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png", {
|
L.tileLayer(
|
||||||
maxZoom: 17,
|
"https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png",
|
||||||
minZoom: 5,
|
{
|
||||||
attribution:
|
maxZoom: 17,
|
||||||
'© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>',
|
minZoom: 5,
|
||||||
}).addTo(map);
|
attribution:
|
||||||
|
'© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>, © <a href="https://carto.com/attributions">CARTO</a>',
|
||||||
|
},
|
||||||
|
).addTo(map);
|
||||||
|
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user