From 99512724e011ef13a2a503be36b701b3d8cb1626 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Wed, 14 Jul 2021 10:05:10 +0200 Subject: [PATCH] Fix build --- Customizations/JSON/LayerConfigJson.ts | 2 +- Logic/Actors/GeoLocationHandler.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Customizations/JSON/LayerConfigJson.ts b/Customizations/JSON/LayerConfigJson.ts index 6739e33fd..ca272ecb0 100644 --- a/Customizations/JSON/LayerConfigJson.ts +++ b/Customizations/JSON/LayerConfigJson.ts @@ -225,7 +225,7 @@ export interface LayerConfigJson { * If 'preferredBackgroundCategory' is set, the element will attempt to pick a background layer of that category. */ preciseInput?: true | { - preferredBackground: "osmbasedmap" | "photo" | "historicphoto" | "map" + preferredBackground: "osmbasedmap" | "photo" | "historicphoto" | "map" | string } }[], diff --git a/Logic/Actors/GeoLocationHandler.ts b/Logic/Actors/GeoLocationHandler.ts index ed944ed0a..6d37e6f4e 100644 --- a/Logic/Actors/GeoLocationHandler.ts +++ b/Logic/Actors/GeoLocationHandler.ts @@ -114,7 +114,7 @@ export default class GeoLocationHandler extends VariableUiElement { }); this.onClick(() => { - if (self._isActive.data) { + if (self._hasLocation.data) { self._isLocked.setData(!self._isLocked.data); } self.init(true);