Commit Graph

1901 Commits

Author SHA1 Message Date
Ansis Brammanis 547f12f822 Fields now have an optional geometry type
field defaults aren't geometry specific
the geometry type determines whether
that field (and default value) apply
to an entity
2013-03-14 16:48:09 -04:00
John Firebaugh 51a217caa2 Refine tagged vertex rendering
Don't render tagged vertices for which we don't have
an icon as the 'marker' icon. Marker shape is for points.
2013-03-14 13:35:24 -07:00
John Firebaugh 364d93693b Use traditional marker shape for points (fixes #172) 2013-03-14 11:22:10 -07:00
Ansis Brammanis d412664d00 add tooltips to add-field buttons 2013-03-14 11:46:33 -04:00
Ansis Brammanis 23222b62b4 Use icons for additional fields 2013-03-14 10:52:41 -04:00
John Firebaugh 54c1de74e0 Fix global leak 2013-03-13 17:40:53 -07:00
John Firebaugh 3787185182 Rendering tagged points
At z16 and below, tagged points are rendered with a small
dot in the center. At z17 and above, they are rendered with
a maki icon.

See the test rendering page for examples.

Fixes #381.
2013-03-13 17:31:25 -07:00
John Firebaugh 23a4c4792f Clean up iD.svg.LineString
Outer call to projection.stream isn't needed.
2013-03-13 17:31:25 -07:00
Saman Bemel-Benrud 0faf9d114d adding universal preset form icons to sprite. 2013-03-13 19:45:05 -04:00
Tom MacWright b21f863312 The one true coordinate order. Fixes #1025 2013-03-13 17:48:40 -04:00
Saman Bemel-Benrud 0a9c3cb047 fix radial menu controls. 2013-03-13 16:04:56 -04:00
John Firebaugh 89f8054884 Fix input 2013-03-13 12:46:31 -07:00
John Firebaugh 41e696a2c5 Flatten presets match properties 2013-03-13 12:45:20 -07:00
Saman Bemel-Benrud 73b2d898c8 inspector header revision. 2013-03-13 15:32:20 -04:00
Saman Bemel-Benrud 9321a860ce adding controls for 'number' input type. 2013-03-13 15:32:20 -04:00
John Firebaugh c1aa8e0270 form/forms -> field/fields 2013-03-13 11:34:21 -07:00
Saman Bemel-Benrud a5c4d54b9d copy tweaks. 2013-03-13 14:03:25 -04:00
Tom MacWright 327e8f90db Search progress indicator
Source: https://gist.github.com/tmcw/5153896
2013-03-13 12:39:08 -04:00
Ansis Brammanis 90a35a8b76 avoid flashing geocoder results list when closing
fixes #993
2013-03-13 12:06:41 -04:00
Ansis Brammanis 94391cc087 remove fill pattern when changing tags
fixes #996
2013-03-13 11:55:15 -04:00
Ansis Brammanis e3ac9954cb add additional fields to building preset 2013-03-13 11:07:51 -04:00
John Firebaugh 8479d3ec48 Add textarea form type and note universal form 2013-03-12 18:33:36 -07:00
saman bb a7f57ac5e5 resolved conflict 2013-03-12 20:54:26 -04:00
saman bb 983f69e461 resolved conflict 2013-03-12 20:51:13 -04:00
John Firebaugh 42ff0f359a user/uid can be undefined for all types 2013-03-12 17:47:50 -07:00
John Firebaugh 76ab27ae4c Improve road features form, localize options 2013-03-12 17:38:08 -07:00
saman bb 3228e1fcda more work on new preset layout. 2013-03-12 20:25:35 -04:00
John Firebaugh 8509d9f620 Remove inline forms
No good way to give them IDs; better to be consistent.
2013-03-12 17:19:11 -07:00
John Firebaugh c0e1245623 Fix reversed alignment adjustment (fixes #999) 2013-03-12 16:39:44 -07:00
John Firebaugh 4720a84d38 No-op a null tag merge
Reduces unnecessary node churn in Connect action.
2013-03-12 16:26:40 -07:00
John Firebaugh 4fa88acc85 Fix connecting adjacent vertices
Can't unconditionally delete the node; it may be a member
of other ways.

I didn't preserve the behavior of dragging a midpoint to
an adjacent node being a no-op. In general we don't try to
eliminate compound operations whose net result is a no-op;
I don't think it's important to do so for this special case.

The degenerate case of connecting the endpoints of a two-vertex
line now results in a point. This is what naturally resulted
from the code, and seems ok.

Fixes #983.
2013-03-12 16:26:40 -07:00
John Firebaugh 3b3ee84a84 Specs for Way#areAdjacent 2013-03-12 16:22:30 -07:00
Ansis Brammanis 831b67beae universal presets
presets with universal=true show up for
any preset if the key is present
2013-03-12 19:19:10 -04:00
saman bb c53ccb1bb5 initial commit of form revamp 2013-03-12 18:35:44 -04:00
Ansis Brammanis ca1a7cf7f6 add ability to add general form fields 2013-03-12 17:42:55 -04:00
John Firebaugh 03cede7e24 Ensure tooltip is removed (fixes #986) 2013-03-12 13:42:35 -07:00
John Firebaugh be567fb028 Render landuse=farm and landuse=farmland identically
See http://www.openstreetmap.org/user/Harry%20Wood/diary/14079
for an entertaining rant on this subject.
2013-03-12 13:12:07 -07:00
John Firebaugh 107f6cfeba type -> geometry 2013-03-12 13:00:32 -07:00
Ansis Brammanis d7645d7f21 fix locale.js 2013-03-12 15:45:39 -04:00
saman bb 6dc7b7b236 preset style/layout cleanup. 2013-03-12 15:32:26 -04:00
Ansis Brammanis 917d5bfaeb avoid history change when dragging midpoint
dragging a midpoint onto an adjacent node
should do nothing
2013-03-12 14:38:01 -04:00
John Firebaugh 42be94c97f Localize address placeholders 2013-03-12 11:19:45 -07:00
John Firebaugh a5885ce3c2 Localize preset form labels 2013-03-12 11:19:45 -07:00
John Firebaugh 0be66fabf6 alpha3 2013-03-12 10:09:10 -07:00
Saman Bemel-Benrud 5e35bc87d7 cleaning up presets. 2013-03-11 20:32:25 -04:00
John Firebaugh 68cc99c412 Disable Move operation on incomplete relations (fixes #972) 2013-03-11 16:43:06 -07:00
John Firebaugh 113ae58de8 Fix up tests 2013-03-11 15:45:27 -07:00
John Firebaugh 9f5ba8342d Convert DragNode to a mode
This makes the CSS more consistent and makes fixing #953
easier. Also, dragging now clears the selection and closes
any operations menu, which is good.

There's still a minor Chrome bug: it doesn't refresh the
cursor when the .behavior-hover class is removed.
2013-03-11 15:45:27 -07:00
Ansis Brammanis 4c45ab1787 Operation tooltips are absolutely positioned 2013-03-11 17:52:49 -04:00
Ansis Brammanis 79ae138a19 add shorcuts to geocoder/background tooltips 2013-03-11 17:12:23 -04:00