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 === "density") {
} 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': 'Density', 's3': 'Density/Area'},  
'count': { 's1': 'Count', 's2': 'Area', 's3': 'Area–Population'},  
'density': { 's1': 'Density', 's2': 'Count', 's3': 'Density/Area'},  
'area': { 's1': 'Area', 's2': 'Count', 's3': 'Area–Population'},  
'densityArea': { 's1': 'Density/Area', 's2': 'Count', 's3': 'Density'}
'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 = "density";
n.choroVar = "area";
}
}
} else {
} else {
if (n.choroVar !== "densityArea") {
if (n.choroVar !== "areaPop") {
n.choroVar = "densityArea";
n.choroVar = "areaPop";
} else {
} else {
n.choroVar = "density";
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.