Skip to content

#12354: fix Issue with mouse coordinates for certain CRS not showing lat, lng for custom geographic CRSs#12357

Merged
MV88 merged 1 commit into
geosolutions-it:masterfrom
mahmoudadel54:issue_12354
May 11, 2026
Merged

#12354: fix Issue with mouse coordinates for certain CRS not showing lat, lng for custom geographic CRSs#12357
MV88 merged 1 commit into
geosolutions-it:masterfrom
mahmoudadel54:issue_12354

Conversation

@mahmoudadel54
Copy link
Copy Markdown
Contributor

Description

This PR resolves a regression introduced in #11514 where mouse coordinates were not correctly displayed for custom geographic CRS rather than 4326.

Please check if the PR fulfills these requirements

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

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

Issue

What is the current behavior?

#12354

What is the new behavior?

The mouse position coords are showing now correctly

recording.21.mp4

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

For test use:

"projectionDefs": [
    {
      "code": "EPSG:4258",
      "def": "+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs +type=crs +axis=neu",
      "extent": [-180, -90, 180, 90],
      "worldExtent": [-180, -90, 180, 90]
    }],

and

{
        "name": "MousePosition",
        "cfg": {
          "editCRS": true,
          "showLabels": true,
          "showToggle": true,
          "filterAllowedCRS": [ "EPSG:4258"],
          "additionalCRS": { "EPSG:3857": {"label": "WEB MERCATOR"},  "EPSG:4326": {"label": "WGS84"}, "EPSG:4258": {"label": "Custom Geographic CRS"}}
        }
      },

…RS not showing lat, lng for custom geographic CRSs

- fix the regression issue in editing 'getPosition' function in 'mouseposition/MousePosition.jsx'
- add unit test for edits
@MV88 MV88 merged commit 4602059 into geosolutions-it:master May 11, 2026
12 checks passed
@offtherailz
Copy link
Copy Markdown
Member

offtherailz added a commit that referenced this pull request May 11, 2026
…lat, lng for custom geographic CRSs (#12357) (#12363)

- fix the regression issue in editing 'getPosition' function in 'mouseposition/MousePosition.jsx'
- add unit test for edits

(cherry picked from commit 4602059)

Co-authored-by: mahmoud adel <58145645+mahmoudadel54@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.

Issue with mouse coordinates for certain CRS not showing lat, lng for custom geographic CRSs

3 participants