[openstreetmap-website] Use a hash anchor for location/zoom persistence (#378)

John Firebaugh notifications at github.com
Fri Jul 26 18:02:52 UTC 2013


Good question. The current ordering is actually #zoom/lat/lon (I accidentally reversed it in the initial description), which is the default for [leaflet-hash](https://github.com/mlevans/leaflet-hash). There's no real consensus or clear choice for lat/lon vs lon/lat -- Google, Bing, and Leaflet do it one way, GeoJSON, D3, iD, and other frameworks another.

Zoom will always be present in the hashes generated by OSM.org itself, so URLs that omit zoom would be coming from third-party source. What sorts of use cases do you think a zoomless URL would be used for? And when it is omitted, how should an appropriate default be determined?

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/378#issuecomment-21637721
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20130726/f30a7231/attachment.html>


More information about the rails-dev mailing list