-
Notifications
You must be signed in to change notification settings - Fork 91
Snap To Rail #1027
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
Merged
Merged
Snap To Rail #1027
Changes from 6 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
23f5fa3
add dropdown menu and todos
josh-willis-arcadis b809f44
use snap to option to calculate shape
josh-willis-arcadis 356c46e
remove uses of followStreets
josh-willis-arcadis d69c421
update params sent to rail router
josh-willis-arcadis ddb4352
use util functions from dev branch
josh-willis-arcadis 69187fb
use type from leaflet
josh-willis-arcadis d65f69a
use enum and remove magic string
josh-willis-arcadis b3888af
rename snapToOption to followOption
josh-willis-arcadis 21be59b
disable 'avoidHighways' when street is not selected
josh-willis-arcadis 18dc760
bring in changes from dev branch
josh-willis-arcadis d4d1ae6
dont delete followStreets logic
josh-willis-arcadis 0e572c5
refactor(editor/util/map.js): bring back followStreets
josh-willis-arcadis fde3d92
restore use of followStreets
josh-willis-arcadis e693650
restore use of followStreet in valhalla.js
josh-willis-arcadis 30306a3
restore usage of followStreets
josh-willis-arcadis c21bc38
add util function from dev
josh-willis-arcadis 2a29438
add followRail to state and use in UI
josh-willis-arcadis 0a1e546
rail routing works!
josh-willis-arcadis 5f822a1
address pr feedback
josh-willis-arcadis 852392d
remove text.js in favor of to-sentence-case.js
josh-willis-arcadis 39722d9
extract followRail and use in polyline call
josh-willis-arcadis b8c38c1
create on change method for follow option
josh-willis-arcadis 0042619
extract bounds var
josh-willis-arcadis a2d7022
use followRail when extending pattern
josh-willis-arcadis 57c4816
call valhalla when followRail is true
josh-willis-arcadis 0c2ab13
allow snap to rail option only when route_type is 0,1, or 2
josh-willis-arcadis 9083e6f
sort props
josh-willis-arcadis 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 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| // @flow | ||
|
|
||
| import toLower from 'lodash/toLower' | ||
| import upperFirst from 'lodash/upperFirst' | ||
|
|
||
| export default function toSentenceCase (s: string): string { | ||
| return upperFirst(toLower(s)) | ||
| } |
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.