Select point on minimap where to split

This commit is contained in:
Arno Deceuninck 2021-07-13 16:11:57 +02:00
parent ae5325d4d1
commit 159e4d3350
6 changed files with 146 additions and 140 deletions

View file

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