Skip to content

Conversation

@D3rPole
Copy link

@D3rPole D3rPole commented Jun 17, 2024

Added information window for each train

Window shows:

  • Speed
  • Current schedule (all stations)
  • Which station is current target
  • Expected arrival countdown for each station
  • Current path of the train is overlaid on top of the track map when this window is open

Window opens when a train is clicked.

Little video to show how it looks like:
https://github.com/jenchanws/create-track-map/assets/28690204/697b3e6a-f466-4961-b35b-70245f0d51d9

Used this to create the window:
https://github.com/mapshakers/leaflet-control-window

D3rPole and others added 25 commits April 23, 2024 20:05
It will be displayed with the tooltip when hovering over a train.
…e turns the train needs to make. Which makes the visualisation more challenging.
TODO: Fill in track pieces inbetween
Missing: From train to first node / Last node to station
Also added nullcheck for carriage data in create-track-map.js to avoid the missing dimension error that can happen sometimes.
Trainlist button only update when the train moved 10 blocks (was unclickable at 20 updates/sec)
…e cars (just ignore the problem)

Added more data to train info card
Fixed speed being negative (on UI) when driving backwards
Changed displayed speed unit to Blocks/s
Prince527GitHub added a commit to SkyboundLab/create-track-map that referenced this pull request May 28, 2025
Prince527GitHub added a commit to SkyboundLab/create-track-map that referenced this pull request Jun 1, 2025
This reverts commit 9958c5c.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant