Store language text instead of district text

master
Aadhavan Srinivasan 1 month ago
parent 73149275fd
commit 5f8264cda8

@ -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 = []

Loading…
Cancel
Save