Commit Graph

179 Commits

Author SHA1 Message Date
Brandon Liu 48d93f2f38 tag autocomplete can filter keys by element type. 2013-01-16 23:20:56 -08:00
Brandon Liu 349935b381 Fix build. 2013-01-16 22:32:10 -08:00
Tom MacWright 8def2e0999 Remove style and references to it 2013-01-16 13:07:30 -05:00
Tom MacWright 110d60d739 Test new polygon intersection utils 2013-01-16 12:35:58 -05:00
Tom MacWright 4808a8ec9d Improve test coverage of ui elements 2013-01-16 12:29:59 -05:00
Ansis Brammanis b18457f60b Fix leaking globals and add test case 2013-01-14 15:54:12 -05:00
Tom MacWright 72afc6dcb9 Namespace UI components 2013-01-14 14:00:51 -05:00
John Firebaugh 1d707b0eb2 Match inners with outers
After thinking about how the `evenodd` fill rule works, I pretty sure
we don't actually need to do this. If I'm right, I'll back it out, and
it will be in the history if we need it for some other purpose.
2013-01-13 18:17:16 -08:00
John Firebaugh 67c8e287cf Start on multipolygon reconstruction algorithm 2013-01-13 17:20:04 -08:00
Tom MacWright ea3b7baf14 Tag classes no longer changes classes if there is no change. This makes the default, no-class scenario null instead of an empty string 2013-01-12 09:30:11 -05:00
John Firebaugh 4c6757714c parentWays/Relations now take an entity 2013-01-11 17:26:25 -08:00
John Firebaugh acaaab5dc9 Extract iD.svg.Surface 2013-01-11 16:01:39 -08:00
John Firebaugh 45fd260d8f Add basic Area test 2013-01-11 15:49:56 -08:00
John Firebaugh 7dc1945ee3 accuracy-handle -> midpoint 2013-01-11 14:54:51 -08:00
John Firebaugh e95d163dbc Apply tag classes to vertices and points
While here, introduce a `classed` matcher for Chai.
2013-01-11 12:22:23 -08:00
John Firebaugh 577398ca21 Fix .shared classing
Now that Graph#parentWays is cached, the specialized Graph#parentStructure
method is no longer necessary.

This commit also demonstrates that it's relatively easy to write specs for
rendering now!
2013-01-11 11:56:37 -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 1e7e874ad7 Remove jsonp test reference 2013-01-10 21:08:34 -08:00
John Firebaugh d5fbe32b1d Remove d3.jsonp (only wiki.js used it) 2013-01-10 21:00:24 -08:00
John Firebaugh cddef8d7c8 Remove deleted and duplicated script includes 2013-01-10 19:43:22 -08:00
Ansis Brammanis b9cd9193c3 update to taginfo api v4 2013-01-10 13:25:01 -05:00
Tom MacWright eedc0fce9d Fast parent calculation. 2013-01-09 14:52:39 -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
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 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 87671bb3e9 Test for boundary condition 2013-01-07 17:37:07 -05:00
John Firebaugh 2d3ce6c125 Extract hover behavior 2013-01-07 08:34:37 -08:00
Tom MacWright 62cdfdae2d Update tests for taginfo change 2013-01-04 16:15:13 -05:00
John Firebaugh 4a7bd26be8 Add 'Add Tag' button (#314), needs style
Fixes #281.
2013-01-03 23:16:34 -08: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
Tom MacWright 3544bb9d3c Add osmId to entity tests 2013-01-02 13:30:14 -05:00
Tom MacWright 06c3caa1c0 Expand util tests 2013-01-02 13:26:36 -05:00
John Firebaugh 3ffa8066c5 Taginfo typeahead on keys as well as values 2013-01-01 18:43:22 -08:00
John Firebaugh 1956c2f55d Read tags directly from value properties
Fixes #310
2013-01-01 14:38:21 -08: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 d181df4c51 Polymorphism 2012-12-28 22:24:52 -08:00
John Firebaugh f7dfda46b2 Move Entity subclasses to separate files 2012-12-28 22:17:09 -08:00
John Firebaugh 31502c6214 Simplify; test; fix 2012-12-28 22:13:36 -08:00
John Firebaugh 5fe22be7a0 Introduce real Entity subclasses 2012-12-28 18:42:21 -08:00
John Firebaugh 167556ab02 Eliminate attempted entity modification in format.XML 2012-12-27 18:52:56 -08:00
John Firebaugh c66ea58d56 Move transients to graph (fixes #285) 2012-12-27 18:52:56 -08:00
John Firebaugh 6a4b75aa88 latedrag functionality was merged into iD.behavior.drag 2012-12-21 12:29:59 -08:00
John Firebaugh f0acbc2653 loc -> point, dxdy -> delta 2012-12-21 12:10:44 -08:00