This commit is contained in:
Azgaar 2019-09-08 21:40:48 +03:00
parent 34d1ab0fa5
commit c0a634bec1
2 changed files with 5 additions and 2 deletions

View file

@ -668,6 +668,9 @@ function parseLoadedData(data) {
if (!s.diplomacy) continue;
s.diplomacy = s.diplomacy.map(r => r === "Sympathy" ? "Friendly" : r);
}
// labels should be toggled via style attribute, so remove display attribute
labels.attr("display", null);
}
}()

View file

@ -1011,11 +1011,11 @@ function toggleMarkers() {
function toggleLabels() {
if (!layerIsOn("toggleLabels")) {
turnButtonOn("toggleLabels");
labels.attr("display", null)
labels.style("display", null)
invokeActiveZooming();
} else {
turnButtonOff("toggleLabels");
labels.attr("display", "none");
labels.style("display", "none");
}
}