|
|
|
@ -259,9 +259,15 @@ function drawMap(world) {
|
|
|
|
|
.attr("text-anchor", "middle")
|
|
|
|
|
.attr("font-size", "12px")
|
|
|
|
|
.attr("fill", "black")
|
|
|
|
|
.attr("class", "districtText")
|
|
|
|
|
.attr("id", d => d.properties.district+"Text")
|
|
|
|
|
.text(d => d.properties.district);
|
|
|
|
|
.attr("class", "languageText")
|
|
|
|
|
.attr("id", d => d.properties.lang_name+"Text")
|
|
|
|
|
.text(function(d) {
|
|
|
|
|
if (stateOrDistrictOrLanguage(d) == "language") {
|
|
|
|
|
return d.properties.lang_name;
|
|
|
|
|
} else {
|
|
|
|
|
return d.properties.district;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
let allLangs = []
|
|
|
|
|
|
|
|
|
|