From eaca7a93bc314d404ad5633ab78aa810ff424ac9 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Wed, 1 Nov 2023 20:58:44 +0000 Subject: [PATCH] Use preferred tile.openstreetmap.org URL --- frontend/App.vue | 2 +- static/js/app.js | 2 +- static/js/map.js | 2 +- static/js/search_map.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/App.vue b/frontend/App.vue index 77b1964..e35dfe5 100644 --- a/frontend/App.vue +++ b/frontend/App.vue @@ -1823,7 +1823,7 @@ export default { }; var map = L.map("map", options); - var osm_url = "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"; + var osm_url = "https://tile.openstreetmap.org/{z}/{x}/{y}.png"; var tile_url = "https://tile-c.openstreetmap.fr/hot/{z}/{x}/{y}.png"; var osm = L.tileLayer(osm_url, { maxZoom: 19, diff --git a/static/js/app.js b/static/js/app.js index 1dbfebb..2be3a70 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -2,7 +2,7 @@ var map = L.map('map'); -var tiles = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'); +var tiles = L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png'); var group = L.featureGroup(); map.addLayer(group); tiles.addTo(map); diff --git a/static/js/map.js b/static/js/map.js index 195dc55..0a40d68 100644 --- a/static/js/map.js +++ b/static/js/map.js @@ -110,7 +110,7 @@ if (!start_lat || !start_lng) { ]); } -var osm = L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", { +var osm = L.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png", { maxZoom: 19, }); diff --git a/static/js/search_map.js b/static/js/search_map.js index 3dbd082..66c11f9 100644 --- a/static/js/search_map.js +++ b/static/js/search_map.js @@ -18,7 +18,7 @@ if (!user_lat || !user_lon) { } // Add OpenStreetMap layer -var osm = L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", { maxZoom: 18 }); +var osm = L.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png", { maxZoom: 18 }); osm.addTo(map);