diff --git a/client/src/panels/unitcontrolpanel.ts b/client/src/panels/unitcontrolpanel.ts index 72a4c40d..a8d49fa0 100644 --- a/client/src/panels/unitcontrolpanel.ts +++ b/client/src/panels/unitcontrolpanel.ts @@ -40,7 +40,7 @@ export class UnitControlPanel extends Panel { this.getElement().querySelector("#roe-buttons-container")?.append(...this.#optionButtons["ROE"]); this.getElement().querySelector("#reaction-to-threat-buttons-container")?.append(...this.#optionButtons["reactionToThreat"]); - document.addEventListener("unitsSelection", (e: CustomEvent) => {console.log("Select"); this.show(); this.update(e.detail)}); + document.addEventListener("unitsSelection", (e: CustomEvent) => {this.show(); this.update(e.detail)}); document.addEventListener("clearSelection", () => {this.hide()}); this.hide(); @@ -50,7 +50,6 @@ export class UnitControlPanel extends Panel { if (this.getElement() != null) { this.#showFlightControlSliders(units); - console.log( this.getElement().querySelector("#selected-units-container") ); this.getElement().querySelector("#selected-units-container")?.replaceChildren(...units.map((unit: Unit) => { var button = document.createElement("button"); diff --git a/client/src/units/unit.ts b/client/src/units/unit.ts index b96416bd..1eb531e2 100644 --- a/client/src/units/unit.ts +++ b/client/src/units/unit.ts @@ -77,7 +77,7 @@ export class Unit extends Marker { `, className: 'ol-unit-marker', - iconAnchor: [60, 60] + iconAnchor: [0, 0] }); this.setIcon(icon);