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

Display WGS coordinates in DMS #1602

Closed
steff-o opened this issue Sep 27, 2022 · 0 comments · Fixed by #1623
Closed

Display WGS coordinates in DMS #1602

steff-o opened this issue Sep 27, 2022 · 0 comments · Fixed by #1623

Comments

@steff-o
Copy link
Contributor

steff-o commented Sep 27, 2022

Is your feature request related to a problem? Please describe.
It is common for various sub-cultures of GIS users, especially GPS users, aviation and naval applications, to use coordinates in WGS84 presented as as degrees, hours and minutes (DMS). Origo only supports decimal degrees, which for most people is not trivial to convert by mental arithmetic.

Describe the solution you'd like
Possibility to display WGS84 coordinates using DMS as well as decimal degrees in the position control. The configuration should support adding the same coordinate system several times using different labels and different presentation formats.

Describe alternatives you've considered
Fishing up a reference to OL MousePosition control and set a new coordinate format function and look in the DOM for the change coordinate system button and add a listener to change format function when coordinate system changes. But it feels kind of hacky as none of this is exposed by the PositionControl.

Edit: The reverse function would also be desired, i.e. the go to position functionality in PositionControl (Yes, there is one. Just click the hair cross and enter some coordinates in the textbox next to it) should accept DMS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants