openstreetmap / openstreetmap-website

The Rails application that powers OpenStreetMap
https://www.openstreetmap.org/
GNU General Public License v2.0
2.21k stars 918 forks source link

Display old node versions on map view #5278

Open AntonKhorev opened 1 month ago

AntonKhorev commented 1 month ago

Shows node versions like in #4930 but without complications https://github.com/openstreetmap/openstreetmap-website/pull/4930#issuecomment-2198493197 and without saving api calls.

image

AntonKhorev commented 1 month ago

I believe similar changes to remaining OSM.OldBrowse() occurrences will enable displaying old ways / relations versions? :-)

As soon as https://github.com/openstreetmap/openstreetmap-website/pull/4930#issuecomment-2198793487 is done.

Q: I found one strange behavior with nodes / ways / relations pagination controls. They initially display "Version 1" and "last version", although they should perhaps display only "previous version" link initially.

But before that thing is done, current version without a number and version with the last number are really different pages, although the UI is probably not the best here. See also #4946.