Add switch to hide certain features, cleanup of code

This commit is contained in:
Pieter Vander Vennet 2021-03-25 15:19:44 +01:00
parent aa0989b72a
commit 1b1ec9f15d
18 changed files with 230 additions and 173 deletions

View file

@ -43,7 +43,7 @@ class TitleElement extends UIElement {
}
if (layer.source.osmTags.matchesProperties(properties)) {
const title = new TagRenderingAnswer(
this._allElementsStorage.getEventSourceFor(feature),
this._allElementsStorage.addOrGetElement(feature),
layer.title
)
return new Combine([defaultTitle, " | ", title]).Render();