mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
fix: buttons and actions no longer getting stuck
fix: context menu resizes if accordion is opened feat: added expanding descriptions for context actions
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
import { DivIcon, Map, Marker, MarkerOptions, LatLngExpression } from "leaflet";
|
||||
import { SelectionEnabledChangedEvent } from "../../events";
|
||||
|
||||
export class CustomMarker extends Marker {
|
||||
constructor(latlng: LatLngExpression, options?: MarkerOptions) {
|
||||
super(latlng, options);
|
||||
|
||||
SelectionEnabledChangedEvent.on((enabled) => {
|
||||
const el = this.getElement();
|
||||
if (el === undefined) return;
|
||||
if (enabled) el.classList.add("disable-pointer-events");
|
||||
else el.classList.remove("disable-pointer-events");
|
||||
});
|
||||
}
|
||||
|
||||
onAdd(map: Map): this {
|
||||
|
||||
@@ -32,3 +32,7 @@
|
||||
[data-awacs-mode] .airbase-icon svg * {
|
||||
fill: transparent !important;
|
||||
}
|
||||
|
||||
#map-container .leaflet-airbase-marker.airbase-disable-pointer-events {
|
||||
pointer-events: none;
|
||||
}
|
||||
Reference in New Issue
Block a user