Commit Graph

175 Commits

Author SHA1 Message Date
John Firebaugh
9f1506af5e Always use rounded projection 2013-01-17 11:57:29 -08:00
Tom MacWright
fd2ef2a78b Rename tooltip to tail, use tail in modes. 2013-01-17 12:07:26 -05:00
Tom MacWright
061e81d14a Merge branch 'master' into tooltips 2013-01-17 11:32:37 -05:00
Tom MacWright
cdbe3d6168 Fix removal of elements on undo. Fixes #410 2013-01-17 10:44:12 -05:00
Tom MacWright
eecc6b14fb First shot at tooltips cc @samanbb 2013-01-16 18:39:12 -05:00
Tom MacWright
d8a587631b Fix TypeError from race condition between resetting and using
transforms.
2013-01-16 17:37:57 -05:00
Tom MacWright
6407fa464c Run intersection on difference changes, do not use compact. Fixes #334 2013-01-16 14:06:11 -05:00
Tom MacWright
0e9e14102e Cache fetch results, higher features limit 2013-01-16 13:54:53 -05:00
Ansis Brammanis
cb8dedf2c0 Fix element drag mousedown is listening to 2013-01-16 13:16:59 -05:00
Tom MacWright
87c341d7e0 Fix jshint problems. 2013-01-16 12:39:35 -05:00
Ansis Brammanis
b18457f60b Fix leaking globals and add test case 2013-01-14 15:54:12 -05:00
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