Skip to content

Print Plugin: Configurable Default Projection #11955#11957

Merged
dsuren1 merged 1 commit intogeosolutions-it:masterfrom
rowheat02:fix/printNotMatching
Feb 13, 2026
Merged

Print Plugin: Configurable Default Projection #11955#11957
dsuren1 merged 1 commit intogeosolutions-it:masterfrom
rowheat02:fix/printNotMatching

Conversation

@rowheat02
Copy link
Copy Markdown
Contributor

Description

The default selected projection can be configured from config. On local Config

{
  "name": "Print",
  "cfg": {
    "projectionOptions": {
      "projections": [
        {"name": "EPSG:32122 (Ohio North)", "value": "EPSG:32122"},
        {"name": "EPSG:3857", "value": "EPSG:3857"},
        {"name": "EPSG:4326", "value": "EPSG:4326"}
      ],
      "defaultProjection": "EPSG:32122" // DefaultProjection to be selected
    }
  }
}

DefaultProjection will be selected when the print panel is opened.
NOTE: If defaultProjection is custom projection then that must be in projectionDefs
For test this can be used.

"projectionDefs": [
    {
      "code": "EPSG:32122",
      "def": "+proj=lcc +lat_1=41.7 +lat_2=40.43333333333333 +lat_0=39.66666666666666 +lon_0=-82.5 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs",
      "extent": [
        403035.4105968763,
        48133.91598795739,
        769684.5675940284,
        298304.0075010298
      ],
      "worldExtent": [
        -84.809194047635,
        40.076629775274405,
        -80.4412897899362,
        42.33467076175862
      ]
    }
  ]

Demo for the above configuration:

Screen.Recording.2026-02-05.at.18.12.08.mov

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Enhancement

Issue

What is the current behavior?

#11955

What is the new behavior?

The default projection to be selected when the print panel is opened can be configured in the print plugin.

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes, and I documented them in migration notes
  • No

Other useful information

@rowheat02 rowheat02 added this to the 2026.01.00 milestone Feb 5, 2026
@rowheat02 rowheat02 requested a review from offtherailz February 5, 2026 12:36
@cla-bot cla-bot bot added the CLA Ready label Feb 5, 2026
@rowheat02 rowheat02 linked an issue Feb 5, 2026 that may be closed by this pull request
1 task
@rowheat02 rowheat02 marked this pull request as ready for review February 5, 2026 12:38
@offtherailz offtherailz requested a review from dsuren1 February 12, 2026 17:24
@offtherailz offtherailz assigned dsuren1 and unassigned offtherailz Feb 12, 2026
@offtherailz offtherailz removed their request for review February 12, 2026 17:25
@dsuren1 dsuren1 merged commit 1a224d7 into geosolutions-it:master Feb 13, 2026
14 checks passed
@dsuren1
Copy link
Copy Markdown
Contributor

dsuren1 commented Feb 13, 2026

@ElenaGallo Kindly test this change in DEV when available. Thanks!

@offtherailz
Copy link
Copy Markdown
Member

Successfully created backport PR for 2025.02.xx:

dsuren1 pushed a commit that referenced this pull request Mar 5, 2026
… (#12057)

(cherry picked from commit 1a224d7)

Co-authored-by: RowHeat <40065760+rowheat02@users.noreply.github.com>
allyoucanmap pushed a commit that referenced this pull request Mar 13, 2026
… (#12057)

(cherry picked from commit 1a224d7)

Co-authored-by: RowHeat <40065760+rowheat02@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Print Plugin: Configurable Default Projection

3 participants