From 1b000c6112765c7d934124d9dd18e34551237ac5 Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Wed, 28 Jul 2021 17:12:54 +0200 Subject: [PATCH] Fix initialization error --- projects/common-map/src/fm-map/effects/map.effects.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/common-map/src/fm-map/effects/map.effects.ts b/projects/common-map/src/fm-map/effects/map.effects.ts index 3858d54..6f78d82 100644 --- a/projects/common-map/src/fm-map/effects/map.effects.ts +++ b/projects/common-map/src/fm-map/effects/map.effects.ts @@ -48,7 +48,7 @@ export const { export class MapEffects { private _geojsonFormat: GeoJSON; private _wktFormat: WKT; - private overrideSelectedItemLayer + private overrideSelectedItemLayer: boolean = false; private toPointFeature(updateEvent:commonActions.DeviceUpdateEvent): Feature { var f = this._wktFormat.readFeature(updateEvent.attributes["geometry"],{ @@ -394,6 +394,8 @@ export class MapEffects { if(data && data["fm-map-map"]) { let params = data["fm-map-map"]; this.overrideSelectedItemLayer = params["overrideSelectedItemlayer"] ? params["overrideSelectedItemlayer"] : false; + } else { + this.overrideSelectedItemLayer = false; } return []; })