-
Notifications
You must be signed in to change notification settings - Fork 26
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
Conversation
There was a problem hiding this 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this 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" |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still effective comment.
packages/geo/src/locale/fr.geo.json
Outdated
@@ -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", |
There was a problem hiding this comment.
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!
packages/geo/src/locale/en.geo.json
Outdated
@@ -503,6 +505,11 @@ | |||
"title": "Show results geometries", | |||
"tooltip": "Hide/ show the results geometries " | |||
}, | |||
"reverseCoordFormat": { | |||
"title": "Reverse Coordinates", |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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.
* 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]>
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'