forked from MapComplete/MapComplete
refactoring(maplibre): WIP
This commit is contained in:
parent
231d67361e
commit
4d48b1cf2b
89 changed files with 1166 additions and 3973 deletions
14
Models/MapProperties.ts
Normal file
14
Models/MapProperties.ts
Normal file
|
@ -0,0 +1,14 @@
|
|||
import { Store, UIEventSource } from "../Logic/UIEventSource"
|
||||
import { BBox } from "../Logic/BBox"
|
||||
import { RasterLayerPolygon } from "./RasterLayers"
|
||||
|
||||
export interface MapProperties {
|
||||
readonly location: UIEventSource<{ lon: number; lat: number }>
|
||||
readonly zoom: UIEventSource<number>
|
||||
readonly bounds: Store<BBox>
|
||||
readonly rasterLayer: UIEventSource<RasterLayerPolygon | undefined>
|
||||
|
||||
readonly maxbounds: UIEventSource<undefined | BBox>
|
||||
|
||||
readonly allowMoving: UIEventSource<true | boolean>
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue