Commit Graph

17 Commits

Author SHA1 Message Date
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
554c4c8212 Fix bad tile on load. Fixes #192 2012-12-12 18:45:51 -05:00
Tom MacWright
54ff10ca6a Only listen for load once. Remove tiles on error 2012-12-06 18:01:57 -05:00
Tom MacWright
7f6a06f9bb Move scaleExtent into background sources 2012-12-06 16:10:44 -05:00
Tom MacWright
f9455270f1 Do pyramid loading in both directions, use transforms for tile sizing.
Fixes #190
2012-12-06 15:07:37 -05:00
Tom MacWright
5c6c271394 Split background sources into background_source 2012-12-06 11:12:06 -05:00
Tom MacWright
3b79854399 Fix tests 2012-12-06 10:46:21 -05:00
Tom MacWright
877ae4c32e Add osm mapnik, setup toggling a bit. 2012-12-06 10:39:08 -05:00
Tom MacWright
2f11e74ba1 Support other subdomains, tiger2012 tiles 2012-12-06 10:27:26 -05:00
Tom MacWright
731df3ce41 Test backgroundsource, favor not making object-functions. 2012-12-05 17:34:47 -05:00
Tom MacWright
25557cac12 Fine-tune zoom and center, make them properly match up with other maps 2012-12-04 18:13:23 -05:00
Tom MacWright
3ec03e2526 Use d3.geo.tile in connection. Fixes #103 2012-12-04 12:36:44 -05:00
Tom MacWright
5254f06522 Implement megazooming 2012-12-03 18:41:44 -05:00
Tom MacWright
40fdbb0767 More reasonable limitations for min zoom, remove white borders 2012-12-03 12:48:39 -05:00
Tom MacWright
b63c97673d Simpler, more accurate background positioning. Fixes #163 2012-12-03 11:10:36 -05:00
John Firebaugh
28f8275526 Eliminate failing tile requests in specs 2012-12-01 14:56:16 -08:00
John Firebaugh
16c6cbd08b Rename tiles to background, make more d3ish 2012-12-01 08:45:11 -08:00