forked from MapComplete/MapComplete
Performance improvements, add clock
This commit is contained in:
parent
c2b1f6643b
commit
efd7631837
21 changed files with 2947 additions and 105 deletions
|
@ -42,10 +42,14 @@ export class ElementStorage {
|
|||
}
|
||||
}
|
||||
|
||||
getElement(elementId): UIEventSource<any> {
|
||||
getEventSourceById(elementId): UIEventSource<any> {
|
||||
if (elementId in this._elements) {
|
||||
return this._elements[elementId];
|
||||
}
|
||||
console.log("Can not find eventsource with id ", elementId);
|
||||
console.error("Can not find eventsource with id ", elementId);
|
||||
}
|
||||
|
||||
getEventSourceFor(feature): UIEventSource<any> {
|
||||
return this.getEventSourceById(feature.properties.id);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue