strava / iD

Forking to include Slide, a map tracing helper tool.
http://strava.github.com/iD/
ISC License
29 stars 7 forks source link

Switch lon/lat to lat/lon in the Strava version of iD #3

Open almccon opened 10 years ago

almccon commented 10 years ago

I'm not sure why the version of iD on Strava's github uses the longitude/latitude style in the URL instead of the latitude/longitude style used by the default iD on osm.org, and used in URLs for most slippy maps.

Slide url: http://strava.github.io/iD/#background=Bing&map=18.00/-122.48614/37.73513 OSM.org url: https://www.openstreetmap.org/edit#map=18/37.73513/-122.48614

I know there's not really any convention for web mapping, since you'll see lat/lon and lon/lat mixed in code all over the place, so I'm not saying one is any more correct than the other. But, for the purposes of coordinates in a URL, zoom/lat/lon seems to be the standard.

Why do I care? Only one reason: it's inconvenient to copy-and-paste the zoom/lat/lon from other URLs into Strava's iD when I'm using Slide. Copy-and-paste is the main way I navigate to the spot I want to edit with Slide.

Is there any reason you switched them, @paulmach?

paulmach commented 10 years ago

I've also noticed this issue. However, I haven't made any changes to that part of the iD code. I have no idea why it's different for the osm version vs. the default if you checkout the repo.

looks like @tmcw made the call https://github.com/openstreetmap/iD/issues/1025

tmcw commented 10 years ago

Eh, I've discussed the x/y/z y/x/z problem too many times to do it with much gusto, but I will say two things:

almccon commented 10 years ago

Ah okay. So maybe what I'm asking for is to have the Strava iD duplicate whatever is happening in the iframe on OSM? No clue how complex that would be.

boothym commented 8 years ago

Hi, surprised this hasn't been fixed before now. It's annoying when you are editing in iD and then want to check if Strava has heatmap data for an area you are editing - you can't just copy the co-ordinates over quickly.