-
Notifications
You must be signed in to change notification settings - Fork 34
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
fix: add combined stops/stations layer #789
fix: add combined stops/stations layer #789
Conversation
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.
endpoint: string, | ||
setLocation?: (location: MapLocationActionArg) => void, | ||
setViewedStop?: (stop: Stop) => void, | ||
stopsWhitelist?: string[], | ||
configCompanies?: ConfiguredCompany[], | ||
getEntityPrefix?: (entity: Stop | Station) => JSX.Element | ||
): JSX.Element[] => { | ||
const fakeOtpUiLayerIndex = layers.findIndex(l=>l.type === STOPS_AND_STATIONS_TYPE) |
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.
Can you add a comment here explaining why we're calling this fakeOtpUiLayerIndex
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.
It's not a real layer! The others are all linked to actual maplibre layers
Bug you mention is fixed here! opentripplanner/otp-react-redux#1284 |
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.
OTP-RR draft looks great thanks for the explanation!
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.
looks great!
Requires a few hacks to get click handling working, but allows us to render stations/stops seamless as one layer