Conversation
For #719 This pull request increases the control over the selected date value. The shown date can be selected by the slider or by inputting a year manually by clicking the value and typing a value. The input is a number, so the "up" and "down" arrows can also be used (depends on the browser how it looks visually). If invalid values are manually input, like `100`, `2222` or `bla`, the selected date is reset to the nearest valid value.
detective-fiasco
pushed a commit
to detective-fiasco/OpenRailwayMap-vector
that referenced
this pull request
Apr 8, 2026
For hiddewie#719 This pull request increases the control over the selected date value. The shown date can be selected by the slider or by inputting a year manually by clicking the value and typing a value. The input is a number, so the "up" and "down" arrows can also be used, or the up and down keyboard keys. It depends on the browser how it looks visually. Holding the "up" or "down" arrow will smoothly move the slider forwards or backwards together with the shown year. If invalid values are manually input, like `100`, `2222` or `bla`, the selected date is reset to the nearest valid value. All dates: <img width="923" height="427" alt="image" src="https://github.com/user-attachments/assets/a04bc86a-e12e-47e9-87ae-4704b0d95ab9" /> Historical date: <img width="923" height="427" alt="image" src="https://github.com/user-attachments/assets/e44f9e1f-a987-407f-a73b-6d46d6d6839d" /> Present date: <img width="923" height="427" alt="image" src="https://github.com/user-attachments/assets/23b10b55-3431-43a4-adef-4da329c3a69c" /> Small screens show only the date selection by default. Clicking the date icon toggles this feature: <img width="561" height="427" alt="image" src="https://github.com/user-attachments/assets/6982b76d-da44-4b57-96a8-637635d58a8f" />
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For #719
This pull request increases the control over the selected date value.
The shown date can be selected by the slider or by inputting a year manually by clicking the value and typing a value. The input is a number, so the "up" and "down" arrows can also be used, or the up and down keyboard keys. It depends on the browser how it looks visually.
Holding the "up" or "down" arrow will smoothly move the slider forwards or backwards together with the shown year.
If invalid values are manually input, like
100,2222orbla, the selected date is reset to the nearest valid value.All dates:

Historical date:

Present date:

Small screens show only the date selection by default. Clicking the date icon toggles this feature:
