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

add alternative formats for coordinate search: #10805

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

tyrasd
Copy link
Member

@tyrasd tyrasd commented Feb 22, 2025

  • zoom/x/y – to copy/paste from an osm.org URL or web map with map-hash param (this also sets map zoom to the respective value)
  • x/y – like the above, but does not set zoom level
  • x y (or x/y, or x,y) – where x and y are numbers in the user's locale's number format

todo:

  • check if this works as intended for more locale number formats (I only tested with English1 and with , as decimal separator).
  • add unit tests
  • add to changelog

Footnotes

  1. English is actually a little bit odd, as if you feed it a number like 1,23 it will interpret the , as a thousands group separator, resulting in a coordinate of 123 magnitude. One could argue that it does not make much sense to allow thousands separators in a coordinate (as it cannot be larger than 180), but other locales could potentially use groups with only two digits?!

* zoom/x/y – copy/paste from an osm.org URL or web map with map-hash param (this also sets map zoom to the respective value)
* x/y – like the above, but does not set zoom level
* x y – where x and y are numbers in the user's locale's number format
@tyrasd tyrasd added the usability An issue with ease-of-use or design label Feb 22, 2025
@tyrasd tyrasd added this to the v2.33 milestone Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usability An issue with ease-of-use or design
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant