Commit Graph

174 Commits

Author SHA1 Message Date
John Firebaugh
acaaab5dc9 Extract iD.svg.Surface 2013-01-11 16:01:39 -08:00
John Firebaugh
7dc1945ee3 accuracy-handle -> midpoint 2013-01-11 14:54:51 -08:00
John Firebaugh
b8310e2d9f Move to iD.svg.TagClasses 2013-01-11 11:56:37 -08:00
John Firebaugh
809b73599c Merge points code into iD.svg.Points 2013-01-11 07:49:26 -08:00
John Firebaugh
6aa43f44d0 Split map rendering into some components 2013-01-11 07:04:40 -08:00
John Firebaugh
d5fbe32b1d Remove d3.jsonp (only wiki.js used it) 2013-01-10 21:00:24 -08:00
Ansis Brammanis
ce9a3af01c move save button to separate file 2013-01-10 15:14:37 -05:00
Ansis Brammanis
a2803ffdaa remove wiki.js from index.html 2013-01-10 13:44:36 -05:00
Ansis Brammanis
d1b3d0ce6d add key reference 2013-01-10 12:47:38 -05:00
Tom MacWright
b896115de3 Use dev server 2013-01-09 14:58:16 -05:00
Tom MacWright
eedc0fce9d Fast parent calculation. 2013-01-09 14:52:39 -05:00
Tom MacWright
44eeeeebaa Quick flash of no-docs for non-documented tag pairs. Fixes #340 2013-01-09 11:38:45 -05:00
Tom MacWright
3b5f6dd8bd Support images from the wiki, adds d3.jsonp extension. 2013-01-09 11:31:53 -05:00
Tom MacWright
a293691643 Move taginfo into service 2013-01-09 10:29:42 -05:00
Tom MacWright
85c8bdf0ff Refactor geolocate control 2013-01-08 12:14:05 -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
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
John Firebaugh
2d3ce6c125 Extract hover behavior 2013-01-07 08:34:37 -08: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
John Firebaugh
5199e0f402 Externalize api06 URL 2012-12-30 14:03:45 -08:00
John Firebaugh
c927ff5b5d Rationalize vocabulary
- nodes
  - vertices
  - points
- ways
  - lines
  - areas
2012-12-29 09:18:05 -08:00
John Firebaugh
f7dfda46b2 Move Entity subclasses to separate files 2012-12-28 22:17:09 -08:00
John Firebaugh
6a4b75aa88 latedrag functionality was merged into iD.behavior.drag 2012-12-21 12:29:59 -08:00
John Firebaugh
2c8bbd8985 Integrate new drag behaviors 2012-12-21 12:10:44 -08:00
John Firebaugh
2c40de62be Add iD.behavior.drag
`iD.behavior.drag` is like `d3.behavior.drag`, with the following differences:

* The `origin` function is expected to return an [x, y] tuple rather than an
  {x, y} object.
* The events are `start`, `move`, and `end`.
  (https://github.com/mbostock/d3/issues/563)
* The `start` event is not dispatched until the first cursor movement occurs.
  (https://github.com/mbostock/d3/pull/368)
* The `move` event has a `loc` and `dxdy` [x, y] tuple properties rather
  than `x`, `y`, `dx`, and `dy` properties.
* The `end` event is not dispatched if no movement occurs.
* An `off` function is available that unbinds the drag's internal event handlers.
* Delegation is supported via the `delegate` function.
2012-12-21 12:10:43 -08:00
Tom MacWright
c0921ac44a Move tag reference to its own file 2012-12-17 17:06:39 -05:00
John Firebaugh
ad0efa4931 Place -> Point
We decided to use geometric terms for the modes.
2012-12-14 14:39:38 -08:00
John Firebaugh
209b87f7e8 Extract MoveWay action 2012-12-13 17:39:07 -08:00
John Firebaugh
ee3f5cc768 Move -> MoveNode, in preparation for MoveWay 2012-12-13 17:39:07 -08:00
Tom MacWright
8e14a9a13c Refactor geocoder into ui component, refactor clickoutside technique.
Fixes #251
2012-12-13 14:18:49 -05:00
Tom MacWright
52d9227232 Rename add road to add line. Fixes #252 2012-12-13 12:06:12 -05:00
Tom MacWright
58255a042b Redraw vectors 2012-12-12 15:51:49 -05:00
Tom MacWright
9546a6f743 Limit download threads. Fixes #83 2012-12-07 11:47:48 -05:00
Tom MacWright
f49728872e Fix way finishing, start on split way 2012-12-07 10:42:16 -05:00
Tom MacWright
7cb6cfbe04 Refactor drag features into sub-control and allow dragging in selection
mode
2012-12-07 09:57:30 -05:00
John Firebaugh
79e2d08c0d StartWay -> AddWay (for parallelism with AddNode) 2012-12-06 18:36:03 -05:00
Tom MacWright
cd3129061c Refactor dragging, include latedrag 2012-12-06 17:33:02 -05:00
Tom MacWright
5c6c271394 Split background sources into background_source 2012-12-06 11:12:06 -05:00
Tom MacWright
db76ff8d19 Opacity control, layerswitcher 2012-12-05 19:02:38 -05:00
John Firebaugh
077e5cc9ce Rename various actions 2012-12-05 16:42:48 -05:00
John Firebaugh
812b427ac4 Split remove action into DeleteWay and DeleteNode 2012-12-05 16:14:39 -05:00
John Firebaugh
33beb3d2f0 Split actions into separate files 2012-12-05 16:14:39 -05:00
Tom MacWright
8126189e0a Support proper tooltips on undo redo buttons 2012-12-05 16:00:49 -05:00
Tom MacWright
4968634f12 Cleanup oauth 2012-12-05 15:03:58 -05:00
Tom MacWright
b540e84ae0 Merge branch 'master' of github.com:systemed/iD 2012-12-05 13:05:23 -05:00
Tom MacWright
0c77ae681c Refactor modal concept into one bit of code 2012-12-05 13:04:25 -05:00
John Firebaugh
435be12529 Split modes into separate files 2012-12-05 12:52:26 -05:00
Tom MacWright
4978cd0c12 Resurface keybindings 2012-12-04 15:51:42 -05:00
Tom MacWright
a0d28c1e2d Expand tests, move way logic into entity.js and test it. 2012-12-04 13:06:21 -05:00