Bryan Housel
54594cd296
unzorro vertices that have moved past an endpoint
...
(while this works, it causes jerky confusing movement when moving the way,
so probably taking a different approach involving point scaling)
2015-02-06 10:31:35 -05:00
Bryan Housel
7a6641a5aa
Better polygon intersection test
...
(see also my comment on 83030be )
2014-08-12 22:40:43 -04:00
John Firebaugh
bf1e50df49
Merge pull request #2266 from bhousel/bhousel-scale
...
Add linear map scale to footer section
2014-06-25 12:23:53 -07:00
Bryan Housel
2723c65506
refactor dLat/dLon <-> meters calcs and use slightly better WGS84 constants
2014-06-23 16:23:04 -04:00
Bryan Housel
1a2b9c82f6
add tests, jshint cleanup
2014-06-16 11:49:07 -04:00
Bryan Housel
b07cf7c1c1
Always draw midpoint handles within viewport (like #1840 )
2014-06-14 01:33:20 -04:00
John Firebaugh
d4d80b2d6e
Use turn restriction icons
2014-05-18 16:02:48 -07:00
John Firebaugh
3d210ac3c1
Implement basic restriction toggling
2014-05-18 16:02:47 -07:00
Bryan Housel
236e8413ec
Add 2D cross product to iD.geo..
2014-04-10 01:39:30 -04:00
John Firebaugh
1e78ee5c87
Stricter jshint
2013-10-24 16:08:48 -07:00
John Firebaugh
b69abc2359
iD.geo.edgeEqual
2013-10-10 11:29:10 -07:00
tyr
e8d637f2bb
Add iD.geo.sphericalDistance
...
iD.geo.euclideanDistance should only be used for calculations of
projected coordinates or display (pixel) coordinates.
iD.geo.sphericalDistance calculates approximate geographical
distances, accounting for distortions at higher latitudes. This
can be used for determining the nearest node (operations.Delete,
actions.Circularize) or relative length comparisons (actions.Split).
2013-09-29 07:45:04 -07:00
John Firebaugh
08949d2fe9
Redo iD.geo.chooseIndex
...
It now calculates proper orthogonal projections and finds
the minimal one. Rename it iD.geo.chooseEdge and minimize
its coupling to context.
This version also copes with 0- and 1-node ways.
Fixes #1428 .
2013-05-07 18:35:45 -07:00
Ansis Brammanis
579e6a8a8b
geolocation sets zoom based on accuracy
...
fixes #1375
2013-04-25 11:04:22 -04:00
Tom MacWright
7e9a427a2b
Test getPrototype, use American spellings, fix test formatting.
...
* Stub Lasso test
* Add cmd test
2013-03-05 17:59:50 -05:00
Ansis Brammanis
4d5560bbbc
Fix dist calculation for address suggestions
2013-02-22 16:08:12 -05:00
Ansis Brammanis
85f39134b5
Add address ui element with street suggestions
2013-02-19 19:25:35 -05:00
Tom MacWright
61d7ec45b5
Banish function ( style
2013-02-12 16:35:47 -05:00
Tom MacWright
b24d03a583
Optimize iD.geo.dist, fixes #685
...
See benchmark: http://jsperf.com/id-dist-optimization
2013-02-08 09:46:04 -05:00
John Firebaugh
fe49e8fb77
Pass around context rather than map
2013-02-01 12:40:16 -05:00
John Firebaugh
5ea855e18d
Replace Graph#fetch with Graph#childNodes
...
Having two kinds of Ways (fetched and non-fetched)
introduced some accidental complexity. This brings things
more in line with how parentWays/parentRelations work.
Fixes #73 .
2013-01-25 15:10:44 -05:00
Ansis Brammanis
d14fdfa828
Remove geo.centroid(), use d3's instead
2013-01-23 18:39:14 -05:00
Ansis Brammanis
b0de58b455
Fix merge (util.geo -> geo)
2013-01-23 16:29:52 -05:00
John Firebaugh
c263ebd4dc
iD.util.geo => iD.geo
2013-01-22 18:20:20 -05:00
John Firebaugh
5a2444b551
Extract and fix extent/intersection calculations
...
Extents are now [[min x, min y], [max x, max y]].
2013-01-17 14:27:01 -08:00