forked from MapComplete/MapComplete
Add propagation of metadata in changedescriptions, aggregate metadata in changeset tags
This commit is contained in:
parent
81f3ec385f
commit
21fd148f38
19 changed files with 545 additions and 403 deletions
|
@ -11,7 +11,7 @@ export abstract class OsmObject {
|
|||
private static polygonFeatures = OsmObject.constructPolygonFeatures()
|
||||
private static objectCache = new Map<string, UIEventSource<OsmObject>>();
|
||||
private static historyCache = new Map<string, UIEventSource<OsmObject[]>>();
|
||||
type: string;
|
||||
type: "node" | "way" | "relation";
|
||||
id: number;
|
||||
/**
|
||||
* The OSM tags as simple object
|
||||
|
@ -23,6 +23,7 @@ export abstract class OsmObject {
|
|||
|
||||
protected constructor(type: string, 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