From 2249eb057aeecd0ab8ba0e2b091b9535939e1104 Mon Sep 17 00:00:00 2001 From: aziz Date: Tue, 16 Jan 2024 14:41:31 +0100 Subject: [PATCH 1/2] fix(geo): ensure the store contains map before bind to stores list --- .../src/lib/feature/shared/strategies/in-map-resolution.ts | 4 ++++ packages/geo/src/lib/filter/shared/ogc-filter.ts | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/geo/src/lib/feature/shared/strategies/in-map-resolution.ts b/packages/geo/src/lib/feature/shared/strategies/in-map-resolution.ts index 3b1835215d..29cc5cff25 100644 --- a/packages/geo/src/lib/feature/shared/strategies/in-map-resolution.ts +++ b/packages/geo/src/lib/feature/shared/strategies/in-map-resolution.ts @@ -26,7 +26,11 @@ export class FeatureStoreInMapResolutionStrategy extends EntityStoreStrategy { * @param store Feature store */ bindStore(store: FeatureStore) { + if (!store && !store.layer && !store.layer.map) { + return; + } super.bindStore(store); + if (this.active === true) { this.watchStore(store); } diff --git a/packages/geo/src/lib/filter/shared/ogc-filter.ts b/packages/geo/src/lib/filter/shared/ogc-filter.ts index 9167855706..75d116674d 100644 --- a/packages/geo/src/lib/filter/shared/ogc-filter.ts +++ b/packages/geo/src/lib/filter/shared/ogc-filter.ts @@ -594,8 +594,8 @@ export class OgcFilterWriter { const srsName = igoOgcFilterObject.hasOwnProperty('srsName') ? igoOgcFilterObject.srsName : proj - ? proj.getCode() - : 'EPSG:3857'; + ? proj.getCode() + : 'EPSG:3857'; return Object.assign( {}, From 5f4174a29500676fc25b36ac2dae5637227f4ed3 Mon Sep 17 00:00:00 2001 From: aziz Date: Tue, 16 Jan 2024 14:44:14 +0100 Subject: [PATCH 2/2] delete ligne --- .../geo/src/lib/feature/shared/strategies/in-map-resolution.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/geo/src/lib/feature/shared/strategies/in-map-resolution.ts b/packages/geo/src/lib/feature/shared/strategies/in-map-resolution.ts index 29cc5cff25..52fff3bfd2 100644 --- a/packages/geo/src/lib/feature/shared/strategies/in-map-resolution.ts +++ b/packages/geo/src/lib/feature/shared/strategies/in-map-resolution.ts @@ -30,7 +30,6 @@ export class FeatureStoreInMapResolutionStrategy extends EntityStoreStrategy { return; } super.bindStore(store); - if (this.active === true) { this.watchStore(store); }