Skip to content

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

for reference, this is based on the work in #8769 to support localized number formats.

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
@tyrasd tyrasd merged commit 607f953 into develop Mar 11, 2025
4 checks passed
@tyrasd tyrasd deleted the alternative-coords-formats branch March 11, 2025 20:20
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