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