Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#10136: Search for Map CRS coordinates #10305

Merged
merged 2 commits into from
May 14, 2024

Conversation

mahmoudadel54
Copy link
Contributor

Description

In this PR: keeping user CRS coordinates X/Y as user enters in case entering them in CRS coordinate search then switches to normal coord search [lat/lon] then back again to CRS coordinates search without making change.
They are keeping as entered without a threshold.

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: enhancement

Issue

#10136

What is the current behavior?
It is mentioned at the 1st point in this comment: #10220 (comment)

What is the new behavior?
X/Y coordinates are kept as entered by the user without a threshold.

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

Description:
- resolve a threshold in CRS coordinate in switch
@mahmoudadel54 mahmoudadel54 added enhancement BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch C277-REGION_DE_MURCIA-2024-SUPPORT labels May 10, 2024
@mahmoudadel54 mahmoudadel54 added this to the 2024.01.01 milestone May 10, 2024
@mahmoudadel54 mahmoudadel54 self-assigned this May 10, 2024
@mahmoudadel54 mahmoudadel54 linked an issue May 10, 2024 that may be closed by this pull request
6 tasks
Copy link
Contributor

@dsuren1 dsuren1 left a comment

Choose a reason for hiding this comment

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

@mahmoudadel54
Regression

  • Changing CRS doesn't change the X & Y accordingly, retains previous value

    crs_x_y_incorrect.mp4

@tdipisa
Copy link
Member

tdipisa commented May 13, 2024

@mahmoudadel54 to clarify the purpose of this issue as per our previous exchanges in #10220, this PR should:

Description:
- resolve not update the X/Y coods in case switch between map crs by storing the currentMapCRS into coordinate object
@dsuren1 dsuren1 merged commit d8ab7af into geosolutions-it:master May 14, 2024
6 checks passed
@dsuren1
Copy link
Contributor

dsuren1 commented May 14, 2024

@ElenaGallo Kindly test it in DEV and let us know if it's good to be backported. Thanks

@ElenaGallo
Copy link
Contributor

Test passed, @mahmoudadel54 please backport to 2024.01.xx. Thanks

mahmoudadel54 added a commit to mahmoudadel54/MapStore2 that referenced this pull request May 14, 2024
…t#10305)

* geosolutions-it#10136: Search for Map CRS coordinates
Description:
- resolve a threshold in CRS coordinate in switch

* geosolutions-it#10136: Search for Map CRS coordinates
Description:
- resolve not update the X/Y coods in case switch between map crs by storing the currentMapCRS into coordinate object
@mahmoudadel54
Copy link
Contributor Author

Test passed, @mahmoudadel54 please backport to 2024.01.xx. Thanks

@ElenaGallo
Backport is done ---> #10317

tdipisa pushed a commit that referenced this pull request May 14, 2024
…#10305) (#10317)

* #10136: Search for Map CRS coordinates (#10220)

* #10136: Search for Map CRS coordinates
Description:
- handle current map CRS coordinate search
- Add new component for current map CRS coordinates search
- create a util function for getting extent based on extent to validate the mapCRS extent in case of seach by mapCRS coords
- write some unit tests accroding the new added code + changes

* #10136: Search for Map CRS coordinates
Description:
- add translations

* #10136: Search for Map CRS coordinates
Description:
- resolve review comments
- handle projection bounds range

* #10136: Search for Map CRS coordinates
Description:
- fix FE failure by creating a custom component for DecimalCoordinateEditorSearch

* #10136: Search for Map CRS coordinates
Description:
- revert change in DecimalCoordinateEditor file to keep it as it is in MS

* #10136: Search for Map CRS coordinates
Description:
- resolve review comments

* #10136: Search for Map CRS coordinates
Description:
- resolve review comments
- fix issue of not zooming to 0,0 for map crs option
- don't allow to change coords inputs beyond the allowable crs extent

* #10136: Search for Map CRS coordinates
Description:
- resolve review comments

* #10136: Search for Map CRS coordinates
Description:
- fix clearing marker in switch to different crs

* #10136: Search for Map CRS coordinates
Description:
- fix issue in switch to aeronautical inputs then switch to map crs coord search

* #10136: Search for Map CRS coordinates
Description:
- resolve review comments

* #10136: Search for Map CRS coordinates
Description:
- resolve review comments

* #10136: Search for Map CRS coordinates
Description:
- resolve jumping cursor to last number in input number in change
- Rename component to CRSCoordinateEditor

* #10136: Search for Map CRS coordinates
Description:
- handle localization into onFocus event in CRS coordinate editor

* #10136: Search for Map CRS coordinates
Description:
- remove util function and its test and add its logic to onFocus function directly to fix FE failure

* #10136: Search for Map CRS coordinates
Description:
- revert changes of onFocus, onBlur for IntlNumberFormControl

* #10136: Search for Map CRS coordinates
Description:
- fix issue in lon field

* #10136: Search for Map CRS coordinates (#10305)

* #10136: Search for Map CRS coordinates
Description:
- resolve a threshold in CRS coordinate in switch

* #10136: Search for Map CRS coordinates
Description:
- resolve not update the X/Y coods in case switch between map crs by storing the currentMapCRS into coordinate object
@tdipisa tdipisa removed the BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch label May 14, 2024
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.

Search for Map CRS coordinates
4 participants