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

feat(geo): add new option to reverse coord format #1159

Merged
merged 15 commits into from
Mar 15, 2023
Merged

Conversation

aziz-access
Copy link
Contributor

@aziz-access aziz-access commented Jan 9, 2023

What is the current behavior? (You can also link to an open issue here)

this update relate to the issue 782 on igo2
linked with infra-geo-ouverte/igo2#890

What is the new behavior?

Add new option in search settings to Reverse coords format from 'lonlat' to 'latLon'

@aziz-access aziz-access added enhancement New features and improvements // Nouvelles fonctionnalités et améliorations in progress In progress // Développement en cours labels Jan 9, 2023
@aziz-access aziz-access self-assigned this Jan 9, 2023
@aziz-access aziz-access changed the title feat(geo): add new option to change coord format feat(geo): add new option to reverse coord format Jan 9, 2023
@aziz-access aziz-access added to test Issues that need testing by PO // Demandes qui ont besoin d'être testées par un pilote and removed in progress In progress // Développement en cours labels Jan 23, 2023
Copy link
Contributor

@PhilippeLafreniere18 PhilippeLafreniere18 left a comment

Choose a reason for hiding this comment

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

All good for me!

For spelling, please change all the "reverce" for "reverse"

The only thing is that when you click the reverse settings, i think it would be great if the active search is reloaded ? The user could therefore see in live action what the functionality does.

Copy link
Contributor

@PhilippeLafreniere18 PhilippeLafreniere18 left a comment

Choose a reason for hiding this comment

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

There's still a problem with the feature details refresh when search is reloaded after the reverse settings is toggle.
image

@aziz-access aziz-access added in progress In progress // Développement en cours and removed to test Issues that need testing by PO // Demandes qui ont besoin d'être testées par un pilote labels Feb 16, 2023
@aziz-access aziz-access added to test Issues that need testing by PO // Demandes qui ont besoin d'être testées par un pilote and removed in progress In progress // Développement en cours labels Feb 16, 2023
@PhilippeLafreniere18 PhilippeLafreniere18 added ready to merge and removed to test Issues that need testing by PO // Demandes qui ont besoin d'être testées par un pilote labels Feb 23, 2023
Copy link
Member

@pelord pelord left a comment

Choose a reason for hiding this comment

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

check comments pls.

@@ -94,6 +94,11 @@
(click)="$event.stopPropagation()" [checked]="searchResultsGeometryEnabled" [labelPosition]="'after'">
{{'igo.geo.search.searchResultsGeometry.title' | translate}}
</mat-slide-toggle>
<mat-slide-toggle class="pointer-summary-option" (change)="reverseSearchCoordsFormat($event)" tooltip-position="below"
Copy link
Member

Choose a reason for hiding this comment

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

rename class for both toggle

Copy link
Member

Choose a reason for hiding this comment

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

Still effective comment.

@@ -502,6 +504,11 @@
"title": "Montrer tous les résultats",
"tooltip": "Afficher/cacher la géométrie des résultats"
},
"reverseCoordFormat": {
"title": "Inverser les coordonnées",
Copy link
Member

Choose a reason for hiding this comment

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

Je changerais ce terme...

Afficher les données en latitude/longitude

Adapter la logique pour les tooltips!

@@ -503,6 +505,11 @@
"title": "Show results geometries",
"tooltip": "Hide/ show the results geometries "
},
"reverseCoordFormat": {
"title": "Reverse Coordinates",
Copy link
Member

Choose a reason for hiding this comment

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

I would change that term...

Display data in latitude/longitude

Adapt logic for tooltips!

@@ -488,11 +488,13 @@ export function roundCoordToString(coord: [number, number], decimal: number = 3)
* and for the current UTM zone and MTM zone.
Copy link
Member

Choose a reason for hiding this comment

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

Add this new feature to the lib demo.

@pelord pelord merged commit a3ef8b8 into next Mar 15, 2023
@pelord pelord deleted the coordsFormatLatLon branch March 15, 2023 13:28
cbourget pushed a commit that referenced this pull request Mar 21, 2023
* feat(geo): add new option ti change coord format

* solve lint error

* delete comments and add local text fr,en for the new search option

* rename variable name and add translate to menu option

* improve the code and reverce latlong from coordinates file

* reverse UTM MTM data

* solve lint error

* change spelling reverce for reverse

* reverse coord format lonlat latlon

* feat(search-bar): adjust reverse coord status change

* solve typo and class name

* add reverse coord feature to the lib

* sove lint

* remove reverse coord for projection coordinates

---------

Co-authored-by: Philippe Lafreniere <[email protected]>
Co-authored-by: Pierre-Étienne Lord <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features and improvements // Nouvelles fonctionnalités et améliorations ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants