Update dns.osm.org for changes in mkgeo
authorTom Hughes <tom@compton.nu>
Sun, 11 Aug 2013 13:27:22 +0000 (14:27 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 11 Aug 2013 13:27:42 +0000 (14:27 +0100)
cookbooks/dns/files/default/html/dns.js
cookbooks/dns/recipes/default.rb

index 0677292..caf3ced 100644 (file)
@@ -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 });
           });
index 5486014..530fd77 100644 (file)
@@ -49,8 +49,8 @@ end
 
 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"