Widget:PlaceNamesNavigationMapEnglish: Difference between revisions

From International Robin Hood Bibliography
mNo edit summary
mNo edit summary
Line 377: Line 377:
get("nmnNav").onclick = n.toggleNav;
get("nmnNav").onclick = n.toggleNav;
get("nmnChoro").onclick = n.toggleNav;
get("nmnChoro").onclick = n.toggleNav;
get("choroMapLegend2").onclick = selectChoroVar;
var d = get("choroMapLegend2");
get("choroMapLegend2").style.fontWeight = 600;
d.onclick = selectChoroVar;
get("choroMapLegend2").style.color = "#4d8375";
d.style.fontWeight = 600;
get("choroMapLegend2").style.cursor = "pointer";
d.style.color = "#4d8375";
get("choroMapLegend3").onclick = selectChoroVar;
d.style.cursor = "pointer";
get("choroMapLegend3").style.fontWeight = 600;
d = get("choroMapLegend3");
get("choroMapLegend3").style.color = "#4d8375";
d.onclick = selectChoroVar;
get("choroMapLegend3").style.cursor = "pointer";
d.style.fontWeight = 600;
d.style.color = "#4d8375";
d.style.cursor = "pointer";
get("navMap").style.backgroundColor = "#f9fafa";
get("navMap").style.backgroundColor = "#f9fafa";
get("choroMap").style.backgroundColor = "#f9fafa";
get("choroMap").style.backgroundColor = "#f9fafa";
Line 404: Line 406:
get("map_leaflet_1").style.display = "block";
get("map_leaflet_1").style.display = "block";
w.maps.resizeMaps();
w.maps.resizeMaps();
maps.leafletList[0].map.invalidateSize();
} else if (t === "nmnNav") {
} else if (t === "nmnNav") {
get("navMap").style.display = "block";
get("navMap").style.display = "block";

Revision as of 15:37, 27 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.