Use OSM-settings to keep track of the chosen license; change tree marker to circle (fix #24)

This commit is contained in:
Pieter Vander Vennet 2020-07-01 17:38:48 +02:00
parent b2704d0ab8
commit b1775d8184
15 changed files with 83 additions and 57 deletions

View file

@ -33,6 +33,7 @@ export abstract class UIElement {
public onClick(f: (() => void)) {
this._onClick = f;
this.Update();
return this;
}
Update(): void {
@ -52,10 +53,8 @@ export abstract class UIElement {
}
if (this._onClick !== undefined) {
console.log("Registering")
const self = this;
element.onclick = () => {
console.log("Clicked!")
self._onClick();
}
element.style.cursor = "pointer";