Bryan Housel
9f623836cd
Handle tooltip disabled reasons
2018-04-25 23:32:57 -04:00
Bryan Housel
6ed20d7762
actionMergeNodes can just use actionConnect
2018-04-25 22:26:34 -04:00
Bryan Housel
2909162158
Rename merge_way_nodes to merge_nodes, update tests
2018-04-25 20:57:40 -04:00
Bryan Housel
9bf4799b56
Merge branch 'merge-way-nodes-feature' of https://github.com/ferdibiflator/iD into ferdibiflator-merge-way-nodes-feature
2018-04-25 16:19:32 -04:00
Bryan Housel
ce77538185
Allow connecting FROM nodes to TO nodes if it's a u-turn
2018-04-16 08:00:44 -04:00
Bryan Housel
b2df343f2d
Allow connecting to nodes in the turn restriction from outside
2018-04-14 23:12:19 -04:00
Bryan Housel
87841fc403
Stricter checks to prevent turn restriction breakage when dragging
...
(re: #4921 )
2018-04-13 22:50:51 -04:00
Bryan Housel
8fb083578f
Prevent drag/connect which could damage relations
...
(closes #4921 )
2018-04-12 17:32:16 -04:00
Bryan Housel
b09c712fc5
When connecting nodes, prefer to keep an existing (not new) node
...
(closes #4974 , closes #4674 )
2018-04-09 14:20:40 -04:00
Bryan Housel
734957f283
Handle variants of 'stop' and 'platform' when identifying PTv2 members
...
(closes #4946 )
2018-03-27 21:52:52 -04:00
Bryan Housel
f8bbb995ac
Properly split ways which are members of a via way turn restriction
...
(closes #4861 )
2018-03-10 15:20:20 -05:00
Bryan Housel
aa1565baf8
Avoid reordering stops and platforms in PTv2 routes
...
(closes #4864 )
2018-03-10 00:12:46 -05:00
Bryan Housel
4b1f8a8f61
Merge pull request #4768 from openstreetmap/advanced_intersection
...
Add support for complex intersection and via way restrictions
2018-03-01 01:46:30 -05:00
Bryan Housel
241159b547
Cleanup docs and tests for actionRestrictTurn / actionUnrestrictTurn
...
- actionRestrictTurn will no longer "infer" the turn type
- restrictionType *must* be passed in - this is ok because the only code
we use this action (restrictions.js) already has inferred the type
- this simplifies what the action actually does
- moved the tests from restrict_turn.js that were really just testing
the restriction type inferrence over to intersection.js
(and added a few more tests for iD.osmInferRestriction)
2018-02-28 23:55:59 -05:00
Bryan Housel
d940200ef0
osmInferRestriction can just take a turn, instead of from/to
...
This is better because it makes explicit that osmInferRestriction
needs an actual turn now (from/to with vertex, etc)
2018-02-16 13:27:23 -05:00
Bryan Housel
0cbff57dc9
Cycle through only_ turn restriction states
...
(re: #2622 )
2018-02-07 19:04:28 -05:00
Bryan Housel
6c3a02cebe
Avoid lodash in hot code in coreDifference
...
(closes #2743 , closes #4611 )
2018-02-05 13:44:01 -05:00
Bryan Housel
dac753c4ea
Speedup hot code in actionDiscardTags
...
(re: #4611 )
2018-02-04 14:57:26 -05:00
Bryan Housel
c1378a141f
Add support for complex intersection and via way restrictions
2018-02-02 19:58:09 -05:00
Bryan Housel
0b6183e2c5
Remove any duplicate vertex created during replaceMovedVertex
2018-01-29 01:03:03 -05:00
Bryan Housel
9b200cf514
Code cleanups, changes to replaceMovedVertex in moveAction
...
Trying to eliminate the minimum 10m distance for replacing the original
junction vertex - this is a small threshold. When _not_ replacing this
vertex, the unzorro code will wreck havok on a traffic circle.
(If there is no suitable vertex to use, it will snap to a point between
the nearest vertices, see #4146 )
2018-01-28 23:56:03 -05:00
Bryan Housel
7c918ba161
Allow Relation.replaceMember to optionally preserve duplicates
...
(closes #4696 )
2018-01-18 16:52:23 -05:00
Bryan Housel
be9bbd9271
Add tests for member ordering: node, way, relation
2018-01-18 15:21:38 -05:00
Bryan Housel
8f9a46b75a
Change actionAddMember to rearrange indexed members in place
...
This allows it to work around issues where a relation may
not be completely downloaded
2018-01-17 22:59:55 -05:00
Bryan Housel
be46e85ec0
Move insert way pairing code from osmJoinWays to actionAddMember
...
(tests for actionAddMember now passing!)
2018-01-16 17:41:14 -05:00
Bryan Housel
221158e918
WIP: Add insertHint to actionAddMember, actionSplit
2018-01-15 23:13:59 -05:00
Bryan Housel
03fa6e7be9
Add tryInsert option to osmJoinWays
2018-01-15 22:02:43 -05:00
Bryan Housel
075b85c81d
Apply reversal actions in actionJoin
...
(closes #4688 )
2018-01-14 14:49:57 -05:00
Nikita Mashukov
92451e7b4b
Merge branch 'master' into merge-way-nodes-feature
2018-01-01 22:09:54 +07:00
Bryan Housel
96afbbd785
Refactor vector math functions from geo.js to vector.js
2017-12-28 01:08:11 -05:00
Bryan Housel
117ad7d6b6
Transitionable actionMoveNode
2017-12-22 16:57:27 -05:00
Bryan Housel
2e2b037e36
Move a bunch of commonly used vector and projection math functions into geo
...
- geoVecAdd
- geoVecSubtract
- geoVecScale
- geoZoomToScale
- geoScaleToZoom
2017-12-18 15:05:42 -05:00
Bryan Housel
2edbcc4b82
Match any *:direction key, rather than hardcoding a list
2017-12-11 15:17:17 -05:00
Bryan Housel
6cfe7a2e71
When reversing a way, reverse traffic_signals:direction on child nodes
...
(closes #4595 )
2017-12-06 20:48:21 -05:00
Nikita Mashukov
92374f7af9
tests for merge_way_nodes action
2017-10-30 22:32:48 +07:00
Nikita Mashukov
49d55b68bb
merge internal way nodes too
2017-10-30 20:36:33 +07:00
Nikita Mashukov
f5951e8797
merge tags when merge way nodes
2017-10-30 20:30:14 +07:00
Nikita Mashukov
da0b42e727
merge way nodes action is added
2017-10-28 21:05:50 +07:00
Bryan Housel
c40f242b82
Depend on bhousel/node-diff3 which includes fix for hunk sorting bug
...
(closes #3544 , closes #3058 )
2017-10-24 15:38:52 -04:00
Bryan Housel
a98f57cdcb
Convert lodah-es and d3 to named imports for actions
2017-09-24 21:06:52 -04:00
Lee Haugen
2343198bc2
Check final poly hull edge in search for smallest rectangle
2017-08-29 16:02:04 -05:00
Bryan Housel
01bfc67ea5
After splitting a way, update all matching relation members
...
(closes #4140 )
2017-07-10 18:35:30 -04:00
Bryan Housel
73e27c9657
Now that updateNode preserves circularity, provide close/unclose functions
...
This lets us break closed ways at their connecting node in the few situations where
we actually want that behavior (disconnect action for circular non-area ways)
2017-01-09 19:41:38 -05:00
Bryan Housel
8ce6b9e185
Merge branch 'transitioned-actions'
2017-01-04 17:26:22 -05:00
Bryan Housel
c2713c3a3f
For node-way merge, preserve original node if possible
...
(closes #3683 )
2016-12-31 02:01:13 -05:00
Bryan Housel
cb70b8028f
Pacify eslint
2016-12-23 12:26:00 -05:00
Bryan Housel
c48cdc7c70
Clearer intent for right triangle code
2016-12-23 12:22:48 -05:00
Bryan Housel
cc5f238042
Support transitioned orthogonalize action
2016-12-23 12:04:53 -05:00
Bryan Housel
3e82a7352c
Support transitioned straighten action
2016-12-23 11:09:17 -05:00
Bryan Housel
fdc37287ec
Support transitioned circularize action
2016-12-23 10:52:00 -05:00