create-track-map
create-track-map copied to clipboard
Add info on train schedules and displays its planned path on top of the map.
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