var map = L.map(divName);
// Add OpenStreetMap layer
- L.tileLayer("http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", {
+ L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", {
attribution: "© <a target=\"_parent\" href=\"http://www.openstreetmap.org\">OpenStreetMap</a> and contributors, under an <a target=\"_parent\" href=\"http://www.openstreetmap.org/copyright\">open license</a>",
maxZoom: 18
}).addTo(map);
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 });
});