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:
Davide Passoni
2024-12-11 18:06:59 +01:00
parent e9896963ca
commit 7fe9b0d19f
16 changed files with 145 additions and 64 deletions

View File

@@ -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 {

View File

@@ -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;
}