Commit Graph

783 Commits

Author SHA1 Message Date
Tom MacWright
e88508a123 Do not continue areas. Fixes #331 2013-01-08 13:48:18 -05:00
Tom MacWright
4d3de28891 Merge pull request #337 from systemed/update-attribution
Update attribution when background changes
2013-01-08 09:29:14 -08:00
Tom MacWright
80fc009497 Strict test against correct values 2013-01-08 12:28:48 -05:00
Ansis Brammanis
7d19dca582 Merge branch 'master' of github.com:systemed/iD into update-attribution 2013-01-08 12:23:08 -05:00
Tom MacWright
b1c1844941 jshint touchups 2013-01-08 12:21:53 -05:00
Ansis Brammanis
1e12062f16 Update attribution when background layer changes 2013-01-08 12:21:38 -05:00
Tom MacWright
85c8bdf0ff Refactor geolocate control 2013-01-08 12:14:05 -05:00
Ansis Brammanis
cf5910d991 Merge branch 'master' of github.com:ansis/iD into tooltip-fix 2013-01-08 12:03:09 -05:00
Ansis Brammanis
6e5fbc0e4a Hide and refresh undo tooltips as needed 2013-01-08 11:59:13 -05:00
Tom MacWright
c4e88ad8e9 Add more explanatory helptext 2013-01-08 11:56:40 -05:00
Tom MacWright
32dad42ec4 Refactor contributor listing into ui component, hide it when none are
around.
2013-01-08 11:38:59 -05:00
Tom MacWright
8f6fcc0a4d Filter taginfo suggestions to make them more accurate. Fixes #327 2013-01-08 11:06:24 -05:00
John Firebaugh
e5d79d5270 Fix various line and area drawing bugs
The way and vertex being drawn get an `active` class,
which can be used to hide the vertex and set
`pointer-events: none` on the line.

Use the correct cursors when connecting (fixes #293).

Splice into existing lines at the correct index and
location (fixes #246).
2013-01-07 21:58:01 -08:00
John Firebaugh
f8e2dfb9ce Preserve existing non-tag classes 2013-01-07 21:33:35 -08:00
John Firebaugh
b6beed5606 Prefix tag classes with tag-
When re-rendering, existing non-tag-related classes
such as `selected`, `active`, `hover`, etc. should be
preserved. Without a prefix, it's difficult to
distinguish them from tag classes.
2013-01-07 19:47:56 -08:00
John Firebaugh
ec0ca2a2da 'started a road' -> 'started a line' 2013-01-07 17:08:11 -08:00
John Firebaugh
bcb4de4305 Reverse directional tags and roles when reversing a way
Reverse known direction dependent tags other than `oneway`.
We assume that correcting a backwards oneway is the primary
reason for reversing a way.

The following transforms are performed:

Keys:
      *:right=* ⟺ *:left=*
    *:forward=* ⟺ *:backward=*
   direction=up ⟺ direction=down
     incline=up ⟺ incline=down
        *=right ⟺ *=left

Relation members:
   role=forward ⟺ role=backward

In addition, numeric-valued `incline` tags are negated.

The JOSM implementation was used as a guide, but transformations that 
were of unclear benefit or adjusted tags that don't seem to be used
in practice were omitted.

References:
   http://wiki.openstreetmap.org/wiki/Forward_%26_backward,_left_%26_right
   http://wiki.openstreetmap.org/wiki/Key:direction#Steps
   http://wiki.openstreetmap.org/wiki/Key:incline
   http://wiki.openstreetmap.org/wiki/Route#Members
   http://josm.openstreetmap.de/browser/josm/trunk/src/org/openstreetmap/josm/corrector/ReverseWayTagCorrector.java

Fixes #299.
2013-01-07 16:26:56 -08:00
Tom MacWright
d4af1032a3 Clear inspector when closed 2013-01-07 18:28:52 -05:00
Tom MacWright
52312e28fd Fix relative positioned tooltips. Fixes #319 2013-01-07 18:15:02 -05:00
Tom MacWright
ed032be98f Detect, pass, and display errors. Fixes #124 2013-01-07 17:51:50 -05:00
Tom MacWright
e357033ed8 Parse and display user image if available. Fixes #174 and #329 2013-01-07 17:30:07 -05:00
Tom MacWright
077992f0df Links should not redirect this page ever. 2013-01-07 16:56:24 -05:00
Tom MacWright
9695205e92 Guard against Firefox bug around hidden elements. Fixes #328 2013-01-07 16:23:43 -05:00
John Firebaugh
15099ee517 Define Relation#geometry 2013-01-07 12:15:16 -08:00
John Firebaugh
f8ea7d1e98 Fix accuracy handles 2013-01-07 10:08:07 -08:00
John Firebaugh
57122c8968 Don't focus an existing key, only a blank one 2013-01-07 10:03:41 -08:00
John Firebaugh
4b63823130 Use Entity#geometry() 2013-01-07 09:54:00 -08:00
Tom MacWright
00da444a33 Merge pull request #322 from systemed/inspector-intersect
Inspector intersect
2013-01-07 09:15:10 -08:00
Tom MacWright
de70e1e976 Pan the map for features that intersect with both edges 2013-01-07 12:14:37 -05:00
Tom MacWright
12beb14d07 Work on #250
Implement inspector without a collapsed mode and with semi-intelligent
detection of whether features will conflict with the position of the
inspector. Also adds a `centerEase` fn to the map object.
2013-01-07 11:51:04 -05:00
John Firebaugh
2d3ce6c125 Extract hover behavior 2013-01-07 08:34:37 -08:00
Saman Bemel-Benrud
043ff0ccc6 Merge branch 'master' of github.com:systemed/iD 2013-01-04 19:28:27 -05:00
Tom MacWright
fb9052818d Fix global leaks 2013-01-04 17:44:39 -05:00
Tom MacWright
fdc64c232a Implement layer offset nudging. Fixes #292 2013-01-04 17:35:26 -05:00
Tom MacWright
e80ab9057b Adds geolocation for #157 2013-01-04 17:13:14 -05:00
Tom MacWright
39e93b5f42 Style save button counter 2013-01-04 16:33:33 -05:00
Tom MacWright
70de57b784 Merge branch 'save-indicator' 2013-01-04 16:21:31 -05:00
Tom MacWright
b410fc196a Update typeahead, fixing overlap issues. Fixes #309 2013-01-04 16:12:13 -05:00
Tom MacWright
50743b4344 Summarize unnamed and consecutive objects. Fixes #317 2013-01-04 15:11:48 -05:00
Tom MacWright
1107f7dc7f Optimize calls, generation of accuracy handles 2013-01-04 14:43:47 -05:00
Tom MacWright
6475b1993b Add MapBox Satellite layer. Fixes #318 2013-01-04 13:40:22 -05:00
Tom MacWright
5671a73dba Use groups and fill/strokes for all points except for accuracy handles.
Fixes #278
2013-01-04 12:59:06 -05:00
Tom MacWright
3f8a872d79 Double click to add detail to lines. Fixes #298 2013-01-04 12:36:23 -05:00
Tom MacWright
1c90441881 Do point hover scaling without r. 2013-01-04 12:05:20 -05:00
John Firebaugh
4a7bd26be8 Add 'Add Tag' button (#314), needs style
Fixes #281.
2013-01-03 23:16:34 -08:00
Tom MacWright
0cb5fbe227 Add success page. Fixes #126 2013-01-03 19:26:45 -05:00
Tom MacWright
16a54fea65 Add save indicator. Needs design pass. 2013-01-03 19:02:44 -05:00
John Firebaugh
62efa1948e Add Entity#geometry, use in inspector
Fixes the icon for areas, but breaks it for vertices.
Needs a big-vertex sprite.
2013-01-02 21:59:55 -08:00
John Firebaugh
2a6145ef10 Move friendlyName to Entity 2013-01-02 21:43:35 -08:00
John Firebaugh
ec6c74ebcd Simplify inspector function nesting; cleanup 2013-01-02 21:35:09 -08:00