Commit Graph

166 Commits

Author SHA1 Message Date
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
Tom MacWright
8f194e717e Fix regression around styles. Fixes #339 2013-01-08 14:58:22 -05:00
Tom MacWright
80fc009497 Strict test against correct values 2013-01-08 12:28:48 -05:00
Tom MacWright
b1c1844941 jshint touchups 2013-01-08 12:21:53 -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
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
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
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
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
ab2b4efb85 Custom layer support. Fixes #249 2012-12-13 14:51:34 -05:00
Tom MacWright
a9447cffb5 Fix node hovers. Fixes #260 2012-12-13 12:38:35 -05:00
Saman Bemel-Benrud
03020fb517 resolved conflict. 2012-12-12 20:46:12 -05:00
Saman Bemel-Benrud
c93cd4c9a3 starting to style handles. 2012-12-12 20:44:05 -05:00
Tom MacWright
f0184fe887 Fixup double click after, Fixes #254 2012-12-12 19:06:23 -05:00
Tom MacWright
554c4c8212 Fix bad tile on load. Fixes #192 2012-12-12 18:45:51 -05:00
Tom MacWright
3cbf3739c0 Restrict zoom to scaleExtent 2012-12-12 16:32:40 -05:00
Tom MacWright
58255a042b Redraw vectors 2012-12-12 15:51:49 -05:00
Tom MacWright
b18ba11a09 Fixes #229 and road closing nodes. Order matters for history.replace 2012-12-11 15:58:17 -05:00
Tom MacWright
435b7f46fc Namespace all events 2012-12-11 12:02:01 -05:00