mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
v1.0.15
This commit is contained in:
parent
34d1ab0fa5
commit
c0a634bec1
2 changed files with 5 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}()
|
||||
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue