2023-04-02 02:59:20 +02:00
|
|
|
import { Store, UIEventSource } from "../Logic/UIEventSource"
|
2023-03-24 19:21:15 +01:00
|
|
|
import { BBox } from "../Logic/BBox"
|
|
|
|
import { RasterLayerPolygon } from "./RasterLayers"
|
|
|
|
|
|
|
|
export interface MapProperties {
|
|
|
|
readonly location: UIEventSource<{ lon: number; lat: number }>
|
|
|
|
readonly zoom: UIEventSource<number>
|
2023-04-06 01:33:08 +02:00
|
|
|
readonly minzoom: UIEventSource<number>
|
2023-03-28 05:13:48 +02:00
|
|
|
readonly bounds: UIEventSource<BBox>
|
2023-03-24 19:21:15 +01:00
|
|
|
readonly rasterLayer: UIEventSource<RasterLayerPolygon | undefined>
|
|
|
|
readonly maxbounds: UIEventSource<undefined | BBox>
|
|
|
|
readonly allowMoving: UIEventSource<true | boolean>
|
2023-03-28 05:13:48 +02:00
|
|
|
|
2023-04-02 02:59:20 +02:00
|
|
|
readonly lastClickLocation: Store<{ lon: number; lat: number }>
|
|
|
|
|
2023-03-28 05:13:48 +02:00
|
|
|
readonly allowZooming: UIEventSource<true | boolean>
|
2023-03-24 19:21:15 +01:00
|
|
|
}
|
2023-04-19 03:20:49 +02:00
|
|
|
|
|
|
|
export interface ExportableMap {
|
|
|
|
exportAsPng(): Promise<Blob>
|
|
|
|
}
|