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 });
});
zones = Array.new
-Dir.glob("/var/lib/dns/kml/*.kml").each do |kmlfile|
- zone = File.basename(kmlfile, ".kml")
+Dir.glob("/var/lib/dns/json/*.json").each do |kmlfile|
+ zone = File.basename(kmlfile, ".json")
template "/srv/dns.openstreetmap.org/html/#{zone}.html" do
source "zone.html.erb"