Commit Graph

164 Commits

Author SHA1 Message Date
Ansis Brammanis
a0072bfa18 Add map.extent and use in geocoder 2013-01-14 15:36:52 -05:00
John Firebaugh
acaaab5dc9 Extract iD.svg.Surface 2013-01-11 16:01:39 -08:00
John Firebaugh
cf5efdcfa1 Lint fixes 2013-01-11 14:54:51 -08:00
John Firebaugh
7dc1945ee3 accuracy-handle -> midpoint 2013-01-11 14:54:51 -08:00
Ansis Brammanis
c894ad26f2 nicer getComputedLength caching 2013-01-11 17:28:04 -05:00
Ansis Brammanis
486c201a21 Fix jerk after dragging 2013-01-11 13:39:14 -05:00
Ansis Brammanis
f9d205385a Merge branch 'master' of github.com:systemed/iD 2013-01-11 11:32:32 -05:00
Ansis Brammanis
59bfe703fd Restrict zoom while drawing 2013-01-11 11:32:07 -05:00
John Firebaugh
1e5e588ae6 Clean up 2013-01-11 07:49:26 -08:00
John Firebaugh
68a430cf70 Clean up 2013-01-11 07:09:07 -08:00
John Firebaugh
6aa43f44d0 Split map rendering into some components 2013-01-11 07:04:40 -08:00
John Firebaugh
2ab572bd42 iD.Entity.key 2013-01-10 21:05:03 -08:00
Ansis Brammanis
1eb5744b8d Make vertex tag edits show up in inspector 2013-01-09 16:45:03 -05:00
Tom MacWright
11b3d0d24c Fix #351 2013-01-09 14:57:42 -05:00
Tom MacWright
eedc0fce9d Fast parent calculation. 2013-01-09 14:52:39 -05:00
Tom MacWright
850e7d6568 Optimize difference and parentWays 2013-01-09 13:45:04 -05:00
Tom MacWright
7d705b4bd5 Restyle notice and move responsibility for it outside of the map. Fixes #131 2013-01-09 12:40:17 -05:00
Ansis Brammanis
57c0504dac Fix right click on map from propagating 2013-01-08 18:37:51 -05:00
Tom MacWright
2079918e8f Fix for deleting elements 2013-01-08 16:52:00 -05:00
Tom MacWright
b244d37368 Fix bad typeof 2013-01-08 16:10:57 -05:00
Tom MacWright
9fc05f5e35 Zoom-dependent styles, optimize difference algorithm. 2013-01-08 16:07:16 -05:00
John Firebaugh
f8e2dfb9ce Preserve existing non-tag classes 2013-01-07 21:33:35 -08:00
Tom MacWright
9695205e92 Guard against Firefox bug around hidden elements. Fixes #328 2013-01-07 16:23:43 -05:00
John Firebaugh
f8ea7d1e98 Fix accuracy handles 2013-01-07 10:08:07 -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
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
Tom MacWright
1107f7dc7f Optimize calls, generation of accuracy handles 2013-01-04 14:43:47 -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
1c90441881 Do point hover scaling without r. 2013-01-04 12:05:20 -05:00
Tom MacWright
2860cc2fcb Name callbacks to make profiles more usable 2013-01-02 17:31:51 -05:00
Tom MacWright
f5873a3bc1 Add .hoverEnable to map and disable it for drawing-related modes. Fixes #234 2013-01-02 14:29:04 -05:00
Tom MacWright
aca0098ea0 Use 2d transforms and fix jshint problems 2013-01-02 13:01:18 -05:00
John Firebaugh
c927ff5b5d Rationalize vocabulary
- nodes
  - vertices
  - points
- ways
  - lines
  - areas
2012-12-29 09:18:05 -08:00
John Firebaugh
5fe22be7a0 Introduce real Entity subclasses 2012-12-28 18:42:21 -08:00
John Firebaugh
78569a5ef3 Extract select behavior to mode
While here, use a more appropriate class (.selected).
2012-12-27 18:52:55 -08:00
John Firebaugh
883acd3e60 two-parents -> shared
It might have more than two parents.
2012-12-22 14:46:16 -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
John Firebaugh
61da54b8af Fix map 2012-12-17 15:40:38 -08:00
Tom MacWright
808d5ca8d7 Transition handles as well. Fixes #287 2012-12-17 17:41:44 -05:00
Tom MacWright
e8a14f8b5b Make handles connected to more than one way cyan. Fixes #205 2012-12-17 14:06:27 -05:00
Tom MacWright
c32a1e8fdc New limit of 10,000 features. Fixes #283 2012-12-14 17:06:04 -05:00
Tom MacWright
e20a35d7c9 Append notice to supersurface. Fixes #266 2012-12-14 14:51:05 -05:00
Tom MacWright
ae9ebda78b Add accuracy handles for areas as well. 2012-12-14 14:38:13 -05:00
Saman Bemel-Benrud
5da434497b resolved conflict. 2012-12-14 12:17:49 -05:00
Saman Bemel-Benrud
a78b10a765 map marker style adjustments, more work to inspector. 2012-12-14 12:10:02 -05:00
John Firebaugh
070ee74ff6 Remove unused 2012-12-13 17:43:51 -08:00
John Firebaugh
c5dbebc063 Move keybinding to map 2012-12-13 17:39:06 -08:00
Tom MacWright
a9447cffb5 Fix node hovers. Fixes #260 2012-12-13 12:38:35 -05:00