Widget:PlaceNamesChoropleths: Difference between revisions
From International Robin Hood Bibliography
mNo edit summary |
mNo edit summary |
||
Line 380: | Line 380: | ||
d.style.cursor = "pointer"; | d.style.cursor = "pointer"; | ||
get("choroMap").style.backgroundColor = "#f9fafa"; | get("choroMap").style.backgroundColor = "#f9fafa"; | ||
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") { | |||
get("choroMapLegend1").innerHTML = choroLegend[n.choroVar].s1; | |||
get("choroMapLegend2").innerHTML = choroLegend[n.choroVar].s2; | |||
get("choroMapLegend3").innerHTML = choroLegend[n.choroVar].s3; | |||
get("choroMap").style.display = "block"; | |||
get("choroMapLegend").style.display = "block"; | |||
} | |||
if (t === "nmnChoro") { | |||
m.curMap = "choroMap"; | |||
} | |||
console.log("OKs"); | |||
m.initMap(); | |||
}; | }; | ||
Revision as of 10: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.