mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
feat: Added threat rings to spawn tool
This commit is contained in:
parent
de495cc71d
commit
78c655e2f7
@ -1,5 +1,5 @@
|
||||
import { CustomMarker } from "./custommarker";
|
||||
import { DivIcon, LatLng } from "leaflet";
|
||||
import { DivIcon, LatLng, LatLngExpression } from "leaflet";
|
||||
import { SVGInjector } from "@tanem/svg-injector";
|
||||
import { getApp } from "../../olympusapp";
|
||||
import { adjustBrightness, normalizeAngle, rad2deg } from "../../other/utils";
|
||||
@ -43,6 +43,14 @@ export class TemporaryUnitMarker extends CustomMarker {
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
setLatLng(latlng: LatLngExpression): this {
|
||||
super.setLatLng(latlng);
|
||||
if (this.#acquisitionCircle) this.#acquisitionCircle.setLatLng(latlng);
|
||||
if (this.#engagementCircle) this.#engagementCircle.setLatLng(latlng);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
createIcon() {
|
||||
const blueprint = getApp().getUnitsManager().getDatabase().getByName(this.#name);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user