Commit Graph

1651 Commits

Author SHA1 Message Date
Ansis Brammanis
a21da4f15f Saving graph to and reinstating from localStorage 2013-02-06 12:48:42 -05:00
Ansis Brammanis
a4bf7c689f Merge DragNode and DragMidpoint
Adds shared behaviors such as snapping to DragMidpoint
2013-02-06 10:49:58 -05:00
John Firebaugh
4dbd8f5efc Fix #634 2013-02-05 16:25:33 -08:00
John Firebaugh
8bee68dfbd Fix includes 2013-02-05 16:25:33 -08:00
Tom MacWright
42f2cebab3 Merge branch 'master' of github.com:systemed/iD 2013-02-05 19:09:42 -05:00
Tom MacWright
8f17628190 Support nudging while moving ways. Fixes #533 2013-02-05 19:09:22 -05:00
Ansis Brammanis
14fc1d9c0d Fix flickering after redrawing active elems 2013-02-05 18:47:28 -05:00
John Firebaugh
5eb0644242 Improve multipolygon rendering
Multipolygon relations report their geometry as 'area' and are rendered
as such. However, they do not render a stroke. The stroke rendering
will come from the individual lines, which are given the tag
classes of their parent relations, allowing them to have a stroke
style matching the style of simple areas with the same tags.

Untagged circular ways are no longer considered areas. This prevents
an untagged inner way of a multipolygon from rendering as an area and
is consistent with how P2 and JOSM treat them.

In the CSS, it's no longer necessary to deal with multipolygons
explicitly in selectors. But keep in mind that area boundaries can
now be rendered either as lines or as area strokes. In most cases
the selector should be `path.stroke.tag-_____`, i.e. an explicit
`.area` or `.line` classes should not be included.

Finally, the parent ways of selected multipolygons are given the 'selected'
class.
2013-02-05 15:20:11 -08:00
John Firebaugh
13a784bea5 Better Way#asGeoJSON 2013-02-05 15:20:11 -08:00
John Firebaugh
8735413974 Relation#asGeoJSON 2013-02-05 15:20:11 -08:00
John Firebaugh
72cd6b91fa Relation#multipolygon returns coordinate arrays 2013-02-05 15:20:11 -08:00
Tom MacWright
356fd6edd5 Back off on replacing the location to 1/5 of previous throttle 2013-02-05 17:59:26 -05:00
Tom MacWright
f12b7d0fca Console... 2013-02-05 17:52:42 -05:00
Tom MacWright
930ed89229 Don't trim the cache. Should be fine. Probably. 2013-02-05 17:49:45 -05:00
Tom MacWright
3d13e25d41 Merge pull request #639 from systemed/faux-click
Faux click
2013-02-05 13:02:07 -08:00
Tom MacWright
4b76b136fa Fix tests for faux click 2013-02-05 15:58:54 -05:00
Tom MacWright
4a024651b4 Allow long clicks 2013-02-05 15:44:50 -05:00
Tom MacWright
9743fdf477 Up the radius tolerance to 12px 2013-02-05 15:41:56 -05:00
Tom MacWright
0e0ca2382e Half-second 2013-02-05 15:40:23 -05:00
Tom MacWright
f65803d99f Make restriction both space and time 2013-02-05 15:39:58 -05:00
Tom MacWright
67632d638f Soft clicking. Feels pretty nice. Refs #530 2013-02-05 15:27:02 -05:00
Ansis Brammanis
bc6238c2be Use AddMidpoint when doubleclicking on way 2013-02-05 14:52:05 -05:00
Ansis Brammanis
2d4f477265 dblclick a shared way adds vertex to all ways 2013-02-05 14:11:03 -05:00
Ansis Brammanis
7086012b98 Source oneway arrow styles from css 2013-02-05 13:05:12 -05:00
John Firebaugh
675c39187c Fix point dragging 2013-02-05 09:27:16 -08:00
Ansis Brammanis
0cc2d62985 Update onway arrow font size 2013-02-05 12:14:37 -05:00
Tom MacWright
d159b37ab6 Fix tests 2013-02-05 12:10:05 -05:00
Tom MacWright
db7f42145e Continue removing any non-scoped selectors. Refs #595
Last hits will be combobox and layerswitcher.
2013-02-05 12:00:10 -05:00
Ansis Brammanis
3576a99eb5 Always have delete as first op 2013-02-05 11:00:13 -05:00
John Firebaugh
c37adc617f Fix build 2013-02-05 07:30:58 -08:00
John Firebaugh
4cbdadfbbc Fix undo of multipolygon deletion 2013-02-05 06:56:23 -08:00
Ansis Brammanis
d3d0851596 Fix svg/midpoint tests
Proper solution waiting on 369
2013-02-05 00:51:54 -05:00
Ansis Brammanis
915bcf7826 Fix drawing, leaking globals 2013-02-05 00:41:07 -05:00
John Firebaugh
4fed3e5dac Fix rogue s/red/#f6634f/g 2013-02-04 16:55:46 -08:00
John Firebaugh
c9fb1444db Connect via drag and drop
Fixes #598.
2013-02-04 16:48:54 -08:00
John Firebaugh
73098d259e Specify type for relation member 2013-02-04 16:48:40 -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
Tom MacWright
9bdd7d1139 Merge branch 'master' of github.com:systemed/iD 2013-02-04 18:48:56 -05:00
Tom MacWright
d3c7c4be4b Add imagery convert script, source, and output 2013-02-04 18:48:49 -05:00
Ansis Brammanis
ab7c1fa80a Fix midpoint hiding. really 2013-02-04 18:32:16 -05:00
Ansis Brammanis
c8ab057f19 Remove unused midpoint code 2013-02-04 18:26:45 -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
Tom MacWright
7a50001120 Merge branch 'master' of github.com:systemed/iD 2013-02-04 17:20:34 -05:00
Tom MacWright
3e71dd56cd Wipe out some tags entirely, refs #585 2013-02-04 17:20:06 -05:00
Ansis Brammanis
3417a1639c Hide midpoints when drawing (no snapping) 2013-02-04 17:16:14 -05:00
Ansis Brammanis
1b70a68214 Revert "Don't snap to midpoints, snap to their parent way"
This reverts commit 13b0b540a7.

Conflicts:

	js/id/behavior/draw_way.js
2013-02-04 17:14:56 -05:00
Ansis Brammanis
d0d1a16c0a Fix label halo sizing 2013-02-04 17:04:33 -05:00
Tom MacWright
dbb4615918 Merge branch 'master' of github.com:systemed/iD 2013-02-04 16:48:51 -05:00