From 9b85382bc1080916648775a2563266e2d57dace7 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Fri, 21 Jan 2022 13:58:40 +0100 Subject: [PATCH] Fix popup behaviour, version bump --- Logic/FeatureSource/PerLayerFeatureSourceSplitter.ts | 1 - Models/Constants.ts | 2 +- UI/Base/ScrollableFullScreen.ts | 7 +++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Logic/FeatureSource/PerLayerFeatureSourceSplitter.ts b/Logic/FeatureSource/PerLayerFeatureSourceSplitter.ts index 3bd710478..8bf207aaa 100644 --- a/Logic/FeatureSource/PerLayerFeatureSourceSplitter.ts +++ b/Logic/FeatureSource/PerLayerFeatureSourceSplitter.ts @@ -41,7 +41,6 @@ export default class PerLayerFeatureSourceSplitter { } for (const f of features) { - console.log("Classifying ", f.feature) for (const layer of layers.data) { if (layer.layerDef.source.osmTags.matchesProperties(f.feature.properties)) { // We have found our matching layer! diff --git a/Models/Constants.ts b/Models/Constants.ts index 5f48cbf9c..a44298fe3 100644 --- a/Models/Constants.ts +++ b/Models/Constants.ts @@ -2,7 +2,7 @@ import {Utils} from "../Utils"; export default class Constants { - public static vNumber = "0.15.0-alpha"; + public static vNumber = "0.15.0-alpha-1"; public static ImgurApiKey = '7070e7167f0a25a' public static readonly mapillary_client_token_v4 = "MLY|4441509239301885|b40ad2d3ea105435bd40c7e76993ae85" diff --git a/UI/Base/ScrollableFullScreen.ts b/UI/Base/ScrollableFullScreen.ts index 3985ed16d..4d2db1bae 100644 --- a/UI/Base/ScrollableFullScreen.ts +++ b/UI/Base/ScrollableFullScreen.ts @@ -42,6 +42,11 @@ export default class ScrollableFullScreen extends UIElement { const self = this; + Hash.hash.addCallback(h => { + if(h === undefined){ + isShown.setData(false) + } + }) isShown.addCallback(isShown => { if (isShown) { // We first must set the hash, then activate the panel @@ -60,6 +65,8 @@ export default class ScrollableFullScreen extends UIElement { ScrollableFullScreen._currentlyOpen?.isShown?.setData(false); } }) + + }