forked from MapComplete/MapComplete
Select point on minimap where to split
This commit is contained in:
parent
ae5325d4d1
commit
159e4d3350
6 changed files with 146 additions and 140 deletions
|
@ -25,7 +25,7 @@ export default class Minimap extends BaseUIElement {
|
|||
super()
|
||||
options = options ?? {}
|
||||
this._background = options?.background ?? new UIEventSource<BaseLayer>(AvailableBaseLayers.osmCarto)
|
||||
this._location = options?.location ?? new UIEventSource<Loc>(undefined)
|
||||
this._location = options?.location ?? new UIEventSource<Loc>({lat: 0, lon: 0, zoom: 1})
|
||||
this._id = "minimap" + Minimap._nextId;
|
||||
this._allowMoving = options.allowMoving ?? true;
|
||||
Minimap._nextId++
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue