From 1cccb43f7f8305f5a1ab07f9075caf28c46907b0 Mon Sep 17 00:00:00 2001 From: schmidt Date: Mon, 25 Nov 2024 18:27:51 +0100 Subject: [PATCH 1/3] CADENZA-37531 Fix geometry zooming behaviour to equal the behaviour it was present before the project --- src/cadenza.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cadenza.js b/src/cadenza.js index 9895e247..f8a66947 100644 --- a/src/cadenza.js +++ b/src/cadenza.js @@ -1473,6 +1473,9 @@ function sanitizeExtentStrategy({ return extentStrategy; } } + if (geometry) { + return { type: 'geometry', geometry }; + } if (mapExtent) { return { type: 'static', extent: mapExtent }; } From 6d5d38cf17df37a4542b75dafafa0ab07112a7d3 Mon Sep 17 00:00:00 2001 From: schmidt Date: Mon, 25 Nov 2024 18:32:46 +0100 Subject: [PATCH 2/3] CADENZA-37531 Add the changelog entry for my bugfix --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a1690fc..00e7ccba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ This project uses a version scheme based on the Cadenza main version in the form ## Unreleased +### Fixed +- `geometry` parameter now applies again as `GeometryExtentStrategy` + ## 10.2.5 - 2024-11-25 ### Added - 'Additional Layers' to the sandbox of 'Edit Geometry' From 43ccb5357b5a1163172342aee8fd89978cb7a725 Mon Sep 17 00:00:00 2001 From: schmidt Date: Mon, 25 Nov 2024 18:39:15 +0100 Subject: [PATCH 3/3] CADENZA-37531 Add comment for priorization of the extent strategies --- src/cadenza.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cadenza.js b/src/cadenza.js index f8a66947..a350c23d 100644 --- a/src/cadenza.js +++ b/src/cadenza.js @@ -1429,7 +1429,7 @@ function array(/** @type unknown */ value) { /** * Creates a valid extent strategy based on these rules: - * - `extentStrategy` trumps `mapExtent`, `mapExtent` trumps `locationFinder`. + * - `extentStrategy` trumps `geometry`, `geometry` trumps `mapExtent`, `mapExtent` trumps `locationFinder`. * - `mapExtent`, `locationFinder`, and `geometry` are used as fallback for * {@link StaticExtentStrategy#extent}, {@link LocationFinderExtentStrategy#query}, * and {@link GeometryExtentStrategy#geometry} respectively.