From 0c2ab1276b67274d409aea9d854f68515d433746 Mon Sep 17 00:00:00 2001 From: Ekaterina Chantsova Date: Tue, 5 May 2026 17:12:26 +0300 Subject: [PATCH] Map widget: derive mapDataLayerTypes from list of supported map data layers --- .../src/app/shared/models/widget/maps/map-model.definition.ts | 3 ++- ui-ngx/src/app/shared/models/widget/maps/map.models.ts | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ui-ngx/src/app/shared/models/widget/maps/map-model.definition.ts b/ui-ngx/src/app/shared/models/widget/maps/map-model.definition.ts index 681722c0c3..94eced7fcf 100644 --- a/ui-ngx/src/app/shared/models/widget/maps/map-model.definition.ts +++ b/ui-ngx/src/app/shared/models/widget/maps/map-model.definition.ts @@ -219,7 +219,8 @@ const getMapDataLayerDatasources = (settings: MapDataLayerSettings[], return datasources; }; -const getMapDataLayersDatasources = (settings: BaseMapSettings, layerTypes: MapDataLayerType[], includeDataKeys = false): Datasource[] => { +const getMapDataLayersDatasources = (settings: BaseMapSettings, + layerTypes: readonly MapDataLayerType[], includeDataKeys = false): Datasource[] => { const datasources: Datasource[] = []; for (const layerType of layerTypes) { const dataLayerSettings = settings[layerType]; diff --git a/ui-ngx/src/app/shared/models/widget/maps/map.models.ts b/ui-ngx/src/app/shared/models/widget/maps/map.models.ts index c846bd0522..edfe03cc05 100644 --- a/ui-ngx/src/app/shared/models/widget/maps/map.models.ts +++ b/ui-ngx/src/app/shared/models/widget/maps/map.models.ts @@ -200,9 +200,9 @@ export const defaultBaseDataLayerSettings = (mapType: MapType): Partial