mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Fixed odd 'undefined' bug
This commit is contained in:
@@ -734,7 +734,7 @@ export class Map extends L.Map {
|
|||||||
const makeTitle = (isProtected:boolean) => {
|
const makeTitle = (isProtected:boolean) => {
|
||||||
return ( isProtected ) ? "Unit type is protected and will ignore orders" : "Unit is NOT protected and will respond to orders";
|
return ( isProtected ) ? "Unit type is protected and will ignore orders" : "Unit is NOT protected and will respond to orders";
|
||||||
}
|
}
|
||||||
this.#mapMarkerControls.forEach( (control:MapMarkerControl) => {
|
this.getMapMarkerControls().forEach( (control:MapMarkerControl) => {
|
||||||
const toggles = `["${control.toggles.join('","')}"]`;
|
const toggles = `["${control.toggles.join('","')}"]`;
|
||||||
const div = document.createElement("div");
|
const div = document.createElement("div");
|
||||||
div.className = control.protectable === true ? "protectable" : "";
|
div.className = control.protectable === true ? "protectable" : "";
|
||||||
@@ -901,5 +901,9 @@ export class Map extends L.Map {
|
|||||||
this.#visibilityOptions[option] = ev.currentTarget.checked;
|
this.#visibilityOptions[option] = ev.currentTarget.checked;
|
||||||
document.dispatchEvent(new CustomEvent("mapVisibilityOptionsChanged"));
|
document.dispatchEvent(new CustomEvent("mapVisibilityOptionsChanged"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getMapMarkerControls() {
|
||||||
|
return this.#mapMarkerControls;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user