From 4d5c4a97370355bcb604cda603c718cf1ad5e873 Mon Sep 17 00:00:00 2001 From: pdelboca Date: Mon, 19 Feb 2024 13:30:19 -0300 Subject: [PATCH] Fallback to OSM tiles --- .gitignore | 1 + assets/js/map.js | 11 +++-------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 5a08ce43b..de6f0d949 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ plugins.js *.scssc .DS_Store /build +.venv \ No newline at end of file diff --git a/assets/js/map.js b/assets/js/map.js index 9049f040e..5b401f155 100644 --- a/assets/js/map.js +++ b/assets/js/map.js @@ -62,15 +62,10 @@ map.on('load', function () { }); -map.setView([0, 0], 4); +map.setView([0, 0], 2); -var attr = '© Stadia Maps' + - '© Stamen Design ' + - '© OpenMapTiles ' + - '© OpenStreetMap contributors' - - L.tileLayer('https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}@2x.jpg', { - attribution: attr +L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', { + attribution: '© OpenStreetMap contributors' }).addTo(map); function truncate(str, n) {