-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(HomeMapView): Draw alerting segments as dashed lines #123
Conversation
24a8262
to
61ac3f0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! Nice work. Having overlapping routes only display starting at the station they split at looks so much better. Now commuter rail needs a similar treatment, but it looks like it'll be pretty straightforward to add cross-route handling, could that be at all related to the green line follow up issues?
Edit: Oops, didn't refresh before posting that, sounds unrelated.
static func createRouteLayer(route: Route) -> LineLayer { | ||
var routeLayer = LineLayer( | ||
id: Self.getRouteLayerId(route.id), | ||
static func createRouteLayer(route: Route) -> [LineLayer] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel weird about leaving the function name singular when it's returning multiple, but there's already a plural. And something like createRouteLayerPair
or createRouteLayerSet
are still subject to change and too close to type names... Maybe instead createRouteLayers
could be createAllRouteLayers
and this createRouteLayers
?
e75c60c
to
f0c9335
Compare
Summary
Ticket: Style alerting segments on the map
What is this PR for?
Draw alerting segments on map as dashed lines.
Testing
What testing have you done?
Updated / added unit tests and ran locally.
Still something funky going on that is preventing a GL alert from showing up as expected, but OL & RL are working. Hoping for this incremental step to be reviewed first and will dive into the GL alert as a follow-up.