-
Notifications
You must be signed in to change notification settings - Fork 66
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
Don't render one-way arrows on highway features that aren't rendered #925
Don't render one-way arrows on highway features that aren't rendered #925
Conversation
PR Preview: Sprite Sheets: |
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 good to me. Let me know if you agree with the suggested changes; I think it’s fine to merge regardless.
["!", ["in", ["get", "brunnel"], ["literal", ["bridge", "tunnel"]]]], | ||
["!", ["in", ["get", "class"], ["literal", ["path", "track"]]]], |
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.
Nit: I find this somewhat more readable, though I don’t think it would affect performance:
["!", ["in", ["get", "brunnel"], ["literal", ["bridge", "tunnel"]]]], | |
["!", ["in", ["get", "class"], ["literal", ["path", "track"]]]], | |
["match", ["get", "brunnel"], ["bridge", "tunnel"], false, true], | |
["match", ["get", "class"], ["path", "track"], false, true], |
I felt that using the same type of expression as directly above (for brunnel) was more readable. |
I think this version is fine, especially since we'll be presumably throwing it away once tracks and paths actually get implemented anyways. Based on @adamfranco's comments on #717, we're not concerned about a conflict with ongoing work. Therefore, I agree that this is good to merge. Thanks for the PR! |
Yep! I'm also hoping this is temporary, seeing as I ❤️ trails |
I noticed that the style is rendering oneway arrows on paths. This PR removes those (and on tracks, as they aren't rendered either)
on
main
:on this branch: