Fetching matp tiles using https.

This commit is contained in:
Roland 2024-06-13 09:43:55 -06:00
parent 38de2f9b40
commit 97afa9aabd
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -25,7 +25,7 @@
var map = L.map('map').setView({lon: 0, lat: 0}, 2);
// add the OpenStreetMap tiles
L.tileLayer(`http://${window.location.hostname}:8084/hot/{z}/{x}/{y}.png`, {
L.tileLayer(`https://${window.location.hostname}:8084/hot/{z}/{x}/{y}.png`, {
maxZoom: 19,
attribution: '&copy; <a href="https://openstreetmap.org/copyright">OpenStreetMap contributors</a>'
}).addTo(map);