Widget:PlaceNamesNavigationMapEnglish: Difference between revisions
From International Robin Hood Bibliography
mNo edit summary |
mNo edit summary |
||
Line 220: | Line 220: | ||
paths[cur.path].style.stroke = "#bfc5c7"; | paths[cur.path].style.stroke = "#bfc5c7"; | ||
} | } | ||
} else if (w.nav.choroVar === " | } else if (w.nav.choroVar === "area") { | ||
for (var key in d.counties) { | for (var key in d.counties) { | ||
var cur = d.counties[key]; | var cur = d.counties[key]; | ||
Line 335: | Line 335: | ||
var m = w.map; | var m = w.map; | ||
choroLegend = { | choroLegend = { | ||
'count': { 's1': 'Count', 's2': ' | 'count': { 's1': 'Count', 's2': 'Area', 's3': 'Area–Population'}, | ||
' | 'area': { 's1': 'Area', 's2': 'Count', 's3': 'Area–Population'}, | ||
' | 'areaPop': { 's1': 'Area–Population', 's2': 'Count', 's3': 'Area'} | ||
} | } | ||
n.choroVar = "count"; | n.choroVar = "count"; | ||
Line 348: | Line 348: | ||
n.choroVar = "count"; | n.choroVar = "count"; | ||
} else { | } else { | ||
n.choroVar = " | n.choroVar = "area"; | ||
} | } | ||
} else { | } else { | ||
if (n.choroVar !== " | if (n.choroVar !== "areaPop") { | ||
n.choroVar = " | n.choroVar = "areaPop"; | ||
} else { | } else { | ||
n.choroVar = " | n.choroVar = "area"; | ||
} | } | ||
} | } |
Revision as of 21:00, 19 May 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.