Widget:PlaceNamesNavigationMapEnglish: Difference between revisions
From International Robin Hood Bibliography
mNo edit summary |
mNo edit summary |
||
Line 201: | Line 201: | ||
for (var key in d.counties) { | for (var key in d.counties) { | ||
var cur = d.counties[key]; | var cur = d.counties[key]; | ||
paths[cur.path].style.stroke = "#ffffff"; | paths[cur.path].style.stroke = "#ffffff"; | ||
} | } | ||
Line 209: | Line 208: | ||
var cur = d.counties[key]; | var cur = d.counties[key]; | ||
paths[cur.path].style.fill = cur.totalcol; | paths[cur.path].style.fill = cur.totalcol; | ||
paths[cur.path].style.stroke = "#ffffff"; | paths[cur.path].style.stroke = "#ffffff"; | ||
} | } | ||
Line 216: | Line 214: | ||
var cur = d.counties[key]; | var cur = d.counties[key]; | ||
paths[cur.path].style.fill = cur.pnperkm2col; | paths[cur.path].style.fill = cur.pnperkm2col; | ||
paths[cur.path].style.stroke = "#ffffff"; | paths[cur.path].style.stroke = "#ffffff"; | ||
} | } | ||
Line 223: | Line 220: | ||
var cur = d.counties[key]; | var cur = d.counties[key]; | ||
paths[cur.path].style.fill = cur.pnperkm2popcol; | paths[cur.path].style.fill = cur.pnperkm2popcol; | ||
paths[cur.path].style.stroke = "#ffffff"; | paths[cur.path].style.stroke = "#ffffff"; | ||
} | } | ||
Line 247: | Line 243: | ||
m.prepareMap = function() { | m.prepareMap = function() { | ||
var mp = get(m.curMap); | var mp = get(m.curMap); | ||
var width = 496, height = 550; | //var width = 496, height = 550; | ||
var width = 248, height = 275; | |||
var projection = d3.geo.conicEqualArea().scale(5165.269352442655).center([-1.4602454263940616,52.55675714793008]).parallels([49.95898294542323,55.81107189358492]).rotate([1.4602454263940616]).translate([202.798519176517,306.70813464248357]); | var projection = d3.geo.conicEqualArea().scale(5165.269352442655).center([-1.4602454263940616,52.55675714793008]).parallels([49.95898294542323,55.81107189358492]).rotate([1.4602454263940616]).translate([202.798519176517,306.70813464248357]); | ||
var path = d3.geo.path().projection(projection); | var path = d3.geo.path().projection(projection); |
Revision as of 20:55, 20 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.