Add possibility to upload your travelled track to OSM

This commit is contained in:
Pieter Vander Vennet 2022-08-05 12:39:02 +02:00
parent 9424364f3f
commit 312db3ad50
11 changed files with 208 additions and 44 deletions

View file

@ -14,14 +14,15 @@ export class RadioButton<T> extends InputElement<T> {
elements: InputElement<T>[],
options?: {
selectFirstAsDefault?: true | boolean,
dontStyle?: boolean
dontStyle?: boolean,
value?: UIEventSource<T>
}
) {
super();
options = options ?? {}
this._selectFirstAsDefault = options.selectFirstAsDefault ?? true;
this._elements = Utils.NoNull(elements);
this.value = new UIEventSource<T>(undefined);
this.value = options?.value ?? new UIEventSource<T>(undefined);
this._dontStyle = options.dontStyle ?? false
}