feat: set map to cartocdn

This commit is contained in:
uku 2024-10-21 15:34:47 +02:00
parent 6666401a7f
commit 811328dda7
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o

View file

@ -14,9 +14,10 @@
const map = L.map('map').setView([centerLat, centerLon], 13);
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 19,
attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
L.tileLayer(`https://basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png`, {
attribution:
'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors &copy; <a href="https://carto.com/attributions">CARTO</a>',
maxZoom: 20
}).addTo(map);
lignes.features.forEach((feature) => {