Skip to content

[Backport 2024.01.xx]: #10136: Search for Map CRS coordinates (#10220, #10305)#10317

Merged
tdipisa merged 2 commits intogeosolutions-it:2024.01.xxfrom
mahmoudadel54:porting_10136_2024.01.xx
May 14, 2024
Merged

[Backport 2024.01.xx]: #10136: Search for Map CRS coordinates (#10220, #10305)#10317
tdipisa merged 2 commits intogeosolutions-it:2024.01.xxfrom
mahmoudadel54:porting_10136_2024.01.xx

Conversation

@mahmoudadel54
Copy link
Contributor

[Backport 2024.01.xx]: #10136: Search for Map CRS coordinates (#10220, #10305)

…t#10220)

* geosolutions-it#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

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

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

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

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

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

* geosolutions-it#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

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

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

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

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

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

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

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

* geosolutions-it#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

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

* geosolutions-it#10136: Search for Map CRS coordinates
Description:
- fix issue in lon field
…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
Copy link
Member

@tdipisa tdipisa left a comment

Choose a reason for hiding this comment

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

onZoomToPoint,
onChangeCoord,
defaultZoomLevel,
currentMapCRS,
Copy link
Member

Choose a reason for hiding this comment

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


const changeCoordinates = (coord, value) => {
onChangeCoord(coord, parseFloat(value));
// set current map crs to coordinate object
Copy link
Member

Choose a reason for hiding this comment

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

if (!areValidCoordinates()) {
onClearCoordinatesSearch({owner: "search"});
}
// if there is mapCRS available --> calculate X/Y values by reproject to display in case switch to MapCRS
Copy link
Member

Choose a reason for hiding this comment

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

onZoomToPoint: PropTypes.func,
onChangeCoord: PropTypes.func,
defaultZoomLevel: PropTypes.number
defaultZoomLevel: PropTypes.number,
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

@tdipisa tdipisa left a comment

Choose a reason for hiding this comment

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

I'm sorry I've missed to consider also the other PR connected

@tdipisa tdipisa merged commit 694861c into geosolutions-it:2024.01.xx 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

2 participants