Repository navigation
Train widget: the app's own train map instead of the old diagram - #14
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011C2fAvFFcMRkaF7qSvRA1v
The widget now draws the same map as the Trains tab's Diagram view, off screen at the widget's size: the quiet dark map, the lines along their real tracks side by side, the stations and names, and every train on its own line. The map layers and the line/station building are shared with the app, and the real tracks are kept on the phone so the widget can draw them when the timetable isn't loaded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011C2fAvFFcMRkaF7qSvRA1v
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.
The Ngā Tereina widget now shows the same map as the Trains tab's Diagram view, instead of the old schematic.
TrainArt: renders the map off screen at the widget's size with MapLibre'sMapSnapshotter. The map runs edge to edge under a shaded header. It shows:drawLayersis split intoaklLayers/aklDataTrainNet.lines/TrainNet.stopsAndLinksTrainNet.geo(ctx)saves the real tracks torail-track.txt, so the widget can draw them when the timetable isn't loaded.🤖 Generated with Claude Code
https://claude.ai/code/session_011C2fAvFFcMRkaF7qSvRA1v
Generated by Claude Code