X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/effb14435dcfd32dbfe1d2693117dfa97e9db84d..eecaf26698348adf3d3b64ea680ad82f959a5ae4:/cookbooks/dns/files/default/html/dns.js?ds=sidebyside diff --git a/cookbooks/dns/files/default/html/dns.js b/cookbooks/dns/files/default/html/dns.js index 0677292a3..e5f5e2f5f 100644 --- a/cookbooks/dns/files/default/html/dns.js +++ b/cookbooks/dns/files/default/html/dns.js @@ -3,8 +3,8 @@ function createMap(divName, jsonFile) { var map = L.map(divName); // Add OpenStreetMap layer - L.tileLayer("http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", { - attribution: "© OpenStreetMap and contributors, under an open license", + L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", { + attribution: "© OpenStreetMap and contributors, under an open license", maxZoom: 18 }).addTo(map); @@ -17,7 +17,7 @@ function createMap(divName, jsonFile) { return { color: feature.properties.colour, weight: 2, opacity: 1 } }, onEachFeature: function (feature, layer) { - layer.bindPopup(feature.properties.country + " via " + feature.properties.server); + layer.bindPopup(feature.properties.origin + " via " + feature.properties.server); layer.on("mouseover", function () { this.setStyle({ weight: 5 }); });