Commit Graph

30 Commits

Author SHA1 Message Date
John Firebaugh 3f67b1e513 Adjust fix for #2040 2013-12-10 10:17:25 -05: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 a84a3364cc selection -> selectedIDs
Overloading "selection" is a bad idea.
2013-06-03 15:48:03 -07:00
John Firebaugh 78aee5b6aa Fix tests 2013-04-23 20:09:36 -07:00
John Firebaugh 66551ba903 Show vertices only for selected way (#1022) 2013-04-23 16:52:02 -07:00
Ansis Brammanis df465f73f9 more careful about not drawing midpoints
in the case where all vertices were out of bounds it would
assume there were many hidden vertices
2013-03-28 19:01:51 -04:00
Ansis Brammanis e9244159dc fix midpoint redrawing
Midpoints weren't being redrawn when the way was deleted
but both edge nodes still existed in other ways.
2013-03-28 18:30:10 -04:00
John Firebaugh 9c5a830633 Reduce midpoint shadow 2013-03-15 12:14:36 -07:00
John Firebaugh b7894ceaf0 Calculate participating ways in AddMidpoint
Due to differenced redraw, midpoint.ways was getting stale,
so sometimes dragging a midpoint didn't add the new node to
all ways. Better to calculate participating ways when needed.
This also simplifies the code for adding a midpoint via double
click. It does make filtering midpoints on redraw a bit more
expensive, but a cursory profile didn't show it being a problem.

Fixes #763.
2013-02-27 20:41:38 -08:00
John Firebaugh e154a94ef0 Draw only visible midpoints (#804) 2013-02-17 11:27:36 -08:00
Tom MacWright 61d7ec45b5 Banish function ( style 2013-02-12 16:35:47 -05:00
John Firebaugh cca9c30b32 Fix midpoint hover (fixes #728) 2013-02-12 10:51:19 -08:00
Saman Bemel-Benrud 00da90cf36 Merge branch 'master' of github.com:systemed/iD 2013-02-04 19:37:31 -05:00
Saman Bemel-Benrud 5764012b23 better styles for map features. 2013-02-04 19:37:10 -05:00
Ansis Brammanis ab7c1fa80a Fix midpoint hiding. really 2013-02-04 18:32:16 -05:00
Ansis Brammanis d5937907a4 Hide midpoints without breaking drawing
I always forget d3 works this way.
2013-02-04 17:39:16 -05:00
Ansis Brammanis 7e997af9b8 Hide midpoints when vertices hidden 2013-02-04 17:24:00 -05:00
Ansis Brammanis 9cb0879818 Selecting implicitly sets data 2013-01-31 17:47:24 -05:00
Ansis Brammanis b9d77a8de6 Set data on midpoint circles 2013-01-31 17:44:14 -05:00
John Firebaugh e4c513ae87 midpoint = true -> type = 'midpoint'
Makes it more consistent with entities.
2013-01-30 16:24:33 -05:00
John Firebaugh 459dc00ce5 Change the midpoint data a bit
Store the ways which share the segment and the index of
the segment. This will be used in both DragWay and Draw
behaviors.
2013-01-30 15:47:33 -05:00
Tom MacWright 50b997599d Fix shared-midpoint dragging. Fixes #432 2013-01-27 16:54:34 -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
John Firebaugh c263ebd4dc iD.util.geo => iD.geo 2013-01-22 18:20:20 -05:00
John Firebaugh 4a084a8b89 Improve midpoints rendering 2013-01-20 12:01:19 -08:00
John Firebaugh 9f1506af5e Always use rounded projection 2013-01-17 11:57:29 -08:00
Tom MacWright 199584fbff Name drawing functions so we can profile them 2013-01-16 13:54:36 -05:00
Tom MacWright f9f1436007 Pixel-determined midpoints.
betting that computation is better than tons of svg elements
2013-01-12 01:33:13 -05:00
John Firebaugh 7dc1945ee3 accuracy-handle -> midpoint 2013-01-11 14:54:51 -08:00
John Firebaugh 6aa43f44d0 Split map rendering into some components 2013-01-11 07:04:40 -08:00