💄 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)
|
||||
.setMaxBounds(bounds);
|
||||
|
||||
L.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png", {
|
||||
L.tileLayer(
|
||||
"https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png",
|
||||
{
|
||||
maxZoom: 17,
|
||||
minZoom: 5,
|
||||
attribution:
|
||||
'© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>',
|
||||
}).addTo(map);
|
||||
'© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>, © <a href="https://carto.com/attributions">CARTO</a>',
|
||||
},
|
||||
).addTo(map);
|
||||
|
||||
return map;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user