Skip to content

Fix: CreateMapPagesProcessor ignore zoomToFeature on pages in order to keep the split#3619

Merged
sebr72 merged 3 commits intomapfish:masterfrom
sogelink:f/fix-createMapPageProcessor
May 13, 2025
Merged

Fix: CreateMapPagesProcessor ignore zoomToFeature on pages in order to keep the split#3619
sebr72 merged 3 commits intomapfish:masterfrom
sogelink:f/fix-createMapPageProcessor

Conversation

@arnaudboudier-sogelink
Copy link
Copy Markdown
Contributor

No description provided.

@sbrunner sbrunner changed the title Fix : CreateMapPagesProcessor ignore zoomToFeature on pages in order to keep the split Fix: CreateMapPagesProcessor ignore zoomToFeature on pages in order to keep the split May 7, 2025
@sbrunner sbrunner requested a review from Copilot May 7, 2025 10:20
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request updates the map paging processor to ignore zoomToFeatures on pages, preserving the intended page split behavior. Key changes include:

  • A new configuration file (config.yaml) defining settings for zoomToFeatures, paging, and scalebar.
  • A new test (CreateMapPagesProcessorZoomToFeatureTest.java) verifying that the CreateMapPagesProcessor behaves as expected when zoomToFeatures is disabled.
  • A modification to the CreateMapPagesProcessor (setting input.zoomToFeatures to null) to enforce the ignored zoom feature.

Reviewed Changes

Copilot reviewed 11 out of 14 changed files in this pull request and generated 1 comment.

File Description
core/src/test/resources/org/mapfish/print/processor/map/paging_processor_zoom_to_features_test/config.yaml Added configuration for zoomToFeatures and related attributes for paging and scalebar.
core/src/test/java/org/mapfish/print/processor/map/CreateMapPagesProcessorZoomToFeatureTest.java New test file to validate the processor’s behavior when zoomToFeatures is ignored.
core/src/main/java/org/mapfish/print/processor/map/CreateMapPagesProcessor.java Modified to set input.zoomToFeatures to null, ensuring the zoomToFeatures attribute is ignored.
Files not reviewed (3)
  • core/src/test/resources/org/mapfish/print/processor/map/paging_processor_zoom_to_features_test/requestData.json: Language not supported
  • core/src/test/resources/org/mapfish/print/processor/map/paging_processor_zoom_to_features_test/simpleReport.jrxml: Language not supported
  • core/src/test/resources/org/mapfish/print/processor/map/paging_processor_zoom_to_features_test/thinline.sld: Language not supported

@sebr72 sebr72 self-requested a review May 12, 2025 19:39
Copy link
Copy Markdown
Contributor

@sebr72 sebr72 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this work, and good test coverage. I would have approved the PR but we are not Ok with adding dead code. even in test.

arnaudboudier-sogelink and others added 3 commits May 13, 2025 10:09
@arnaudboudier-sogelink arnaudboudier-sogelink force-pushed the f/fix-createMapPageProcessor branch from d8798fb to 1aeec44 Compare May 13, 2025 08:10
@sebr72 sebr72 self-requested a review May 13, 2025 09:59
Copy link
Copy Markdown
Contributor

@sebr72 sebr72 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work. Thanks.

@sebr72 sebr72 merged commit 6f6d47f into mapfish:master May 13, 2025
6 checks passed
@arnaudboudier-sogelink arnaudboudier-sogelink deleted the f/fix-createMapPageProcessor branch June 3, 2025 07:17
@geo-ghci-int geo-ghci-int bot added this to the 3.32.0 milestone Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants