forked from MapComplete/MapComplete
Feature: image upload now uses the indexedDB-backed queue (formerly known as EmergencyBackup), rework (and simplify) counter logic (fix #2186; fix #1942; helps #2022)
This commit is contained in:
parent
55c015ad84
commit
3d3a72a70a
19 changed files with 402 additions and 503 deletions
|
|
@ -19,9 +19,8 @@ export abstract class OsmObject {
|
|||
public changed: boolean = false
|
||||
timestamp: Date
|
||||
|
||||
protected constructor(type: string, id: number) {
|
||||
protected constructor(type: "node" | "way" | "relation", id: number) {
|
||||
this.id = id
|
||||
// @ts-ignore
|
||||
this.type = type
|
||||
this.tags = {
|
||||
id: `${this.type}/${id}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue