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);