Add some tweaks to hide the add-poi-marker when a layer is enabled

This commit is contained in:
Pieter Vander Vennet 2020-09-17 23:53:57 +02:00
parent 77e065d6e7
commit 15f816e172
5 changed files with 30 additions and 8 deletions

View file

@ -22,7 +22,7 @@ export class State {
// The singleton of the global state
public static state: State;
public static vNumber = "0.0.8a";
public static vNumber = "0.0.8b";
// The user journey states thresholds when a new feature gets unlocked
public static userJourney = {
@ -114,8 +114,11 @@ export class State {
public layoutDefinition: string;
public installedThemes: UIEventSource<{ layout: Layout; definition: string }[]>;
public welcomeMessageOpenedTab = QueryParameters.GetQueryParameter("tab","0").map<number>(
str => isNaN(Number(str)) ? 0 : Number(str),[],n => ""+n
public layerControlIsOpened: UIEventSource<boolean> = QueryParameters.GetQueryParameter("layer-control-toggle", "false")
.map<boolean>((str) => str !== "false", [], b => "" + b)
public welcomeMessageOpenedTab = QueryParameters.GetQueryParameter("tab", "0").map<number>(
str => isNaN(Number(str)) ? 0 : Number(str), [], n => "" + n
);
constructor(layoutToUse: Layout) {