From c94b998a433eceaf5a4983a7c18dfbe474340d0e Mon Sep 17 00:00:00 2001
From: kobben <kvastmo64>
Date: Tue, 18 Aug 2015 14:19:57 +0200
Subject: [PATCH] repaired accidental bg removal

---
 js/NatAtlas.js | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/js/NatAtlas.js b/js/NatAtlas.js
index 5c0569f..42ce98c 100644
--- a/js/NatAtlas.js
+++ b/js/NatAtlas.js
@@ -255,11 +255,10 @@ function setMessage(messageStrs, messageType) {
 
 
 /**
- * Create map menus from metadata json object
- *
- * @param MD : the metadata JSON object
+ * Create map menus
+ * from MD = the global metadata object for maps
  */
-function showMapGroups(MD) {
+function showMapGroups() {
 
     hideCompareMap() ;
     //fold open div:
@@ -327,11 +326,11 @@ function showMapDates(mapGroup, mapSubject, mapUnit) {
         ;
     }
 }/**
- * Create comparemap menus from metadata json object
- *
- * @param MD : the metadata JSON object
+ * Create comparemap menus
+ * from MD = the global metadata object for maps to compare
+ * [for now the same as the main MD]
  */
-function showCompareGroups(MD) {
+function showCompareGroups() {
 
     showCompareMap() ;
     //fold open div:
@@ -389,7 +388,7 @@ function showCompareUnits(mapGroup, mapSubject) {
 function showCompareDates(mapGroup, mapSubject, mapUnit) {
 
     //clean up open menus:
-    d3.select("#mDate").selectAll("input").remove();
+    d3.select("#cDate").selectAll("input").remove();
     var mapDatesList = d3.select("#cDate");
     for (i = 0; i < MD.mapgroups[mapGroup].mapsubjects[mapSubject].mapunits[mapUnit].mapdates.length; i++) {
         mapDatesList.append("input")
@@ -925,11 +924,13 @@ function symboliseMap(geoData, attribData, FK, mapLayer, mapgroup, mapsubject, m
                 toolTipShow(infoTextFromData(d, attribData, tooltipLabel, mapAttrib, mapFK, mapUnit));
             })
             .transition().duration(1500)
+            .attr("class", "classedPolygon") //to avoid being treated as background!
             .style("fill", function (d) {
                 return dataStats.dClass2Colour(getAttribValue(d, attribData, mapAttrib, mapFK));
             })  // fill with result from classify function
         ;
 
+
     } else {
         setMessage(
             ["Onbekend Map Type [" + mapType + "]", "Unknown Map Type [" + mapType + "]"], errorMsg);
-- 
GitLab