Open Infrastructure Map, a view of infrastructure data in OpenStreetMap
Type annotations
Russ Garrettc8b0839ac9c6
diff --git a/web/src/editbutton.ts b/web/src/editbutton.tsindex f06ced8..9296dd1 100644--- a/web/src/editbutton.ts+++ b/web/src/editbutton.ts@@ -8,7 +8,7 @@ class EditButton implements IControl {this._map = mapconst button = el('button', 'Edit in JOSM')- button.onclick = (ev) => {+ button.onclick = (ev: MouseEvent) => {this._click()ev.preventDefault()}diff --git a/web/src/infobox.ts b/web/src/infobox.tsindex cfa8576..5edb3fd 100644--- a/web/src/infobox.ts+++ b/web/src/infobox.ts@@ -5,12 +5,12 @@ class InfoBox {el: HTMLDivElementconstructor(title: string) {this.content = el('div', { class: 'infobox-content' })- const closebutton = el('a', '×')- const header = el('div', title, closebutton, { class: 'infobox-header' })+ const closeButton = el('a', '×')+ const header = el('div', title, closeButton, { class: 'infobox-header' })this.el = el('div', header, this.content, { class: 'infobox' })- closebutton.onclick = (e) => {+ closeButton.onclick = (e: MouseEvent) => {unmount(document.body, this.el)e.preventDefault()}