Bryan Housel
8ecff8b8bc
Add osmNode#isConnected
...
This is used to draw vertices
* where multiple parent ways meet
* where a single way self intersects (but not the closing node of a loop)
We were using Graph#isShared or osmNode#isIntersection, but this is slightly
different to handle self-intersecting ways.
2017-01-23 23:44:04 -05:00
Bryan Housel
04971478cb
Add osmNode#isEndpoint
2017-01-23 21:03:34 -05:00
Bryan Housel
ec2c2e6612
Ensure isDegenerate can be called for all entities
2017-01-23 14:17:41 -05:00
Bryan Housel
f109efda7b
Fix close() for single node ways
2017-01-12 15:56:46 +05:30
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
8676dd6e4c
Changes to removeNode and add tests
2017-01-09 18:38:28 -05:00
Bryan Housel
7b86afc9de
Changes to replaceNode and add tests, also stricter isClosed
2017-01-09 18:16:30 -05:00
Bryan Housel
f510038791
Changes to updateNode and add tests
2017-01-09 17:33:46 -05:00
Bryan Housel
f1cdde0f92
Changes to addNode and add tests
2017-01-09 17:33:26 -05:00
slhh
7817d6dff1
Prevent duplicate consecutive nodes in addNode, updateNode, and
...
replaceNode, and add some comments.
2016-12-24 18:32:28 +01:00
Bryan Housel
722eb3ae4b
perf: call geoPolygonIntersectsPolygon monomorphically to avoid deopts
2016-11-10 11:17:28 -05:00
Bryan Housel
b07bf8eaa2
Extract lane parsing code from way.js into lanes.js
2016-10-12 00:10:46 -04:00
Bryan Housel
f50e80d0b5
Refactor Intersection, Multipolygon from geo to osm
2016-10-11 23:09:27 -04:00
Bryan Housel
07fa5fcc34
Refactor Entity, Node, Relation, Tags, Way from core to osm
2016-10-11 22:41:24 -04:00