-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add support for complex intersection and via way restrictions #4768
Merged
Merged
Changes from all commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
c1378a1
Add support for complex intersection and via way restrictions
bhousel 520cfd3
Fix bug causing improper calc of from/via/to metadata after trimming
bhousel aa7925a
Extend leaf ways, so they don't stop within the viewport
bhousel 1007cfe
Better calculation for fitting the whole intersection into view
bhousel 5ca56b6
Handle situation where nodes have no `loc` (like in tests)
bhousel ea4ac80
Extend max distance to 30m, but as measured from starting vertex
bhousel cf1226c
Better calc of turn arrow placmenet along short segments
bhousel 3c340a0
Trying out more intuitive restriction help message
bhousel 0cbff57
Cycle through `only_` turn restriction states
bhousel 47eb525
WIP: add detail slider to restriction editor
bhousel 3bd8d8d
Style tweaks, persist max detail to localstorage
bhousel 4e1bafc
Trying help text with color hint
bhousel 9578966
Detail slider affects turns, but not geometry
bhousel ca9aac5
Adjust text hint colors, change "Continue" to "Straight on"
bhousel 7775853
Better inference of u-turns via way
bhousel c9dac22
Render turn indicators slightly closer to turning vertex
bhousel 1174424
Adjust padding and sizing constants, return to col4 sidebar
bhousel 1612326
Move dist/via sliders to bottom, add imperial/metric conversion
bhousel 0381bad
Adjust constants, trying to avoid crunched turn indicator on leaf way
bhousel dbdbad2
Make sure container has dimensions the first time
bhousel 050907e
Move event bindings to update selection, so callbacks use correct vars
bhousel d030251
Ignore pointer events on restriction help
bhousel 9cb3e7d
Adjust calculation for turn indicator placement
bhousel f7e6eae
Support Only Via paths, render indirect turn restriction with opacity
bhousel a2b6a3b
Flag restriction as indirect if from doesn't match
bhousel 5e9db0d
Move help display code, fix display of indirect only restrictions
bhousel aff9258
Indirect restrictions now include only the partial path
bhousel b84b64c
Avoid user-select as a byproduct of using the control and clicking
bhousel d940200
osmInferRestriction can just take a turn, instead of from/to
bhousel 200098d
Render restriction paths with red/green/blue shadow
bhousel eb3c1f0
Always restyle a selected from way (don't reset it to grey)
bhousel 4ce0b62
Remove unneeded hover behavior, don't hover a way that can't be a FROM
bhousel bbeb346
Show really thick path shadows in the turn restriction editor
bhousel bd46d0c
Highlight restriction when hovering on from
bhousel 7559ff6
Highlight all the paths when hoving on the from
bhousel 104e8ce
Adjust color for better visibility
bhousel 419d1e1
Remove fromOnly highlighting (was confusing), try to simplify
bhousel 156d0fd
Drop confusing fromOnly code, consolidate path highlighting code
bhousel aaed678
Localize all the strings
bhousel c63f79a
Remove isComplex, not used
bhousel 46cc6cc
Update tests to use '_' id separators instead of ','
bhousel 7fa2721
Return an indirect u-turn restriction for an only restriction
bhousel 57d2aee
Add uiFieldHelp component, currently just for turn restrictions field
bhousel b3b2be9
WIP: Add content for turn restriction field help
bhousel 97cbfc5
Add icons and improve css styles for restriction field help
bhousel de1fdaa
Add close button, remove _showing state variable
bhousel 6c6b137
Add some restriction help images, adjust styles
bhousel a700d42
Much improved field help
bhousel d87a43d
Increase box shadow slightly so help popup stands out more
bhousel e975014
Finish help, improve text and styling
bhousel fb40987
Adjust wording of some of the restriction help sections
bhousel f9d000a
When switching to ONLY restriction remove all other restrictions
bhousel e1cf49e
Remove the "excludes coincident highways" check
bhousel 241159b
Cleanup docs and tests for actionRestrictTurn / actionUnrestrictTurn
bhousel 78170f8
Improve hint text to aid in localization
bhousel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
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.
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.
Languages with declension rules won’t be able to translate this well, but I guess the fact that the prepositions are bold makes it feel more like a form and less like a coherent sentence anyways.
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.
Yeah this is extra tricky because the
{fromName}
and{toName}
might not actually be proper named roads, but rather strings like "Residential Road" or "Service Road" which could follow different rules depending on the modifier. We don't support different conjugation of the preset name strings, so I'll punt on this one for now. (But yeah, hoping the way we present it in the UI makes it seem more like a filled in form than a grammatically incorrect sentence).