From 1c158243a37c38e0f14b71d833d899026f2173a1 Mon Sep 17 00:00:00 2001
From: Lelseac <157942857+Lelseac@users.noreply.github.com>
Date: Tue, 17 Dec 2024 16:05:16 -0800
Subject: [PATCH] changed basemap
---
projects/leaflet_chart/index.html | 9 ++++-----
projects/leaflet_chart_two/index.html | 9 ++++-----
2 files changed, 8 insertions(+), 10 deletions(-)
diff --git a/projects/leaflet_chart/index.html b/projects/leaflet_chart/index.html
index 628637d..8275af3 100644
--- a/projects/leaflet_chart/index.html
+++ b/projects/leaflet_chart/index.html
@@ -20,11 +20,10 @@
const map = L.map('mymap').setView([39.011902, -98.484245], 4);
// starting view
- const tiles = L.tileLayer('https://tiles.stadiamaps.com/tiles/alidade_smooth_dark/{z}/{x}/{y}{r}.{ext}', {
- minZoom: 0,
- maxZoom: 20,
- attribution: '© Stadia Maps © OpenMapTiles © OpenStreetMap contributors',
- ext: 'png'
+ const tiles = L.tileLayer('https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png', {
+ attribution: '© OpenStreetMap contributors © CARTO',
+ subdomains: 'abcd',
+ maxZoom: 20
});
tiles.addTo(map);
diff --git a/projects/leaflet_chart_two/index.html b/projects/leaflet_chart_two/index.html
index 7ee2d7d..8f55e50 100644
--- a/projects/leaflet_chart_two/index.html
+++ b/projects/leaflet_chart_two/index.html
@@ -20,11 +20,10 @@
const map = L.map('mymap').setView([41.871941, 12.567380], 3);
// starting view
- const tiles = L.tileLayer('https://tiles.stadiamaps.com/tiles/alidade_smooth_dark/{z}/{x}/{y}{r}.{ext}', {
- minZoom: 0,
- maxZoom: 150,
- attribution: '© Stadia Maps © OpenMapTiles © OpenStreetMap contributors',
- ext: 'png'
+ const tiles = L.tileLayer('https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png', {
+ attribution: '© OpenStreetMap contributors © CARTO',
+ subdomains: 'abcd',
+ maxZoom: 20
});
tiles.addTo(map);