mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
12 lines
409 B
TypeScript
12 lines
409 B
TypeScript
import { MiniMap, MiniMapOptions } from "leaflet-control-mini-map";
|
|
|
|
export class ClickableMiniMap extends MiniMap {
|
|
constructor(layer: L.TileLayer | L.LayerGroup, options?: MiniMapOptions) {
|
|
super(layer, options);
|
|
}
|
|
|
|
getMap() {
|
|
//@ts-ignore needed to access not exported member. A bit of a hack, required to access click events //TODO: fix me
|
|
return this._miniMap;
|
|
}
|
|
} |