Fix popup behaviour, version bump

This commit is contained in:
pietervdvn 2022-01-21 13:58:40 +01:00
parent 7f8120d62e
commit 9b85382bc1
3 changed files with 8 additions and 2 deletions

View file

@ -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!

View file

@ -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"

View file

@ -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);
}
})
}