Commit Graph

22 Commits

Author SHA1 Message Date
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