Add current view popup

This commit is contained in:
Pieter Vander Vennet 2021-12-10 17:30:50 +01:00
commit c76b0a6340
9 changed files with 116 additions and 45 deletions

View file

@ -25,10 +25,13 @@ export default class FeatureInfoBox extends ScrollableFullScreen {
public constructor(
tags: UIEventSource<any>,
layerConfig: LayerConfig,
hashToShow?: string,
isShown?: UIEventSource<boolean>
) {
super(() => FeatureInfoBox.GenerateTitleBar(tags, layerConfig),
() => FeatureInfoBox.GenerateContent(tags, layerConfig),
tags.data.id);
hashToShow ?? tags.data.id,
isShown);
if (layerConfig === undefined) {
throw "Undefined layerconfig";