From 1445e70f3ac50be668c766b44f9080988ebae2a8 Mon Sep 17 00:00:00 2001 From: Inan Hira Date: Mon, 22 Dec 2025 10:04:43 +0000 Subject: [PATCH] Update the tileserver URL scheme --- js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/main.js b/js/main.js index 3720e3f..8c048ce 100644 --- a/js/main.js +++ b/js/main.js @@ -21,8 +21,8 @@ const rit = (position) => { let element = document.getElementById('osm-map'); element.style = 'height:300px;'; let map = L.map(element); - L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { - attribution: '© OpenStreetMap contributors' + L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', { + attribution: '© OpenStreetMap contributors' }).addTo(map); let target = L.latLng(position.coords.latitude, position.coords.longitude); map.setView(target, 14);