From 811328dda7d34cb57d98d819404bfa7f143b0659 Mon Sep 17 00:00:00 2001 From: uku Date: Mon, 21 Oct 2024 15:34:47 +0200 Subject: [PATCH] feat: set map to cartocdn --- src/routes/+page.svelte | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 16b37f9..bf6dabf 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -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: '© OpenStreetMap' + L.tileLayer(`https://basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png`, { + attribution: + '© OpenStreetMap contributors © CARTO', + maxZoom: 20 }).addTo(map); lignes.features.forEach((feature) => {