Jump to: navigation, search

Difference between revisions of "Widget:PnChoropleths"

m
m
Line 380: Line 380:
 
d.style.cursor = "pointer";
 
d.style.cursor = "pointer";
 
get("choroMap").style.backgroundColor = "#f9fafa";
 
get("choroMap").style.backgroundColor = "#f9fafa";
console.log("OK");
+
n.toggleNav();
 
};
 
};
  
Line 386: Line 386:
 
n.toggleNav = function() {
 
n.toggleNav = function() {
 
var t = event.target.id;
 
var t = event.target.id;
if (t === "nmnChoro") {
+
if (t === "nmnChoro") {
get("choroMapLegend1").innerHTML = choroLegend[n.choroVar].s1;
+
get("choroMapLegend1").innerHTML = choroLegend[n.choroVar].s1;
get("choroMapLegend2").innerHTML = choroLegend[n.choroVar].s2;
+
get("choroMapLegend2").innerHTML = choroLegend[n.choroVar].s2;
get("choroMapLegend3").innerHTML = choroLegend[n.choroVar].s3;
+
get("choroMapLegend3").innerHTML = choroLegend[n.choroVar].s3;
get("choroMap").style.display = "block";
+
get("choroMap").style.display = "block";
get("choroMapLegend").style.display = "block";
+
get("choroMapLegend").style.display = "block";
}
+
}
if (t === "nmnChoro") {
+
if (t === "nmnChoro") {
m.curMap = "choroMap";
+
m.curMap = "choroMap";
}
+
}
m.initMap();
+
console.log("OKs");
 +
m.initMap();
 
};
 
};
  

Revision as of 06:44, 2 June 2019

This widget displays the navigation map on country and administrative division landing pages in the place-names section of IRHB. It takes no parameters.