Commit Graph

28 Commits

Author SHA1 Message Date
Tom MacWright
ab7290a865 Fix re-requesting failed tiles. Fixes #594 2013-02-01 11:31:31 -05:00
John Firebaugh
3bdd314eb8 Fix global leak 2013-01-31 12:42:37 -05:00
Tom MacWright
2c2efe3b65 Background refinements. Fixes #561, fixes #456 2013-01-31 11:02:41 -05:00
Tom MacWright
33c541e926 Fix upTile loading 2013-01-24 18:06:54 -05:00
Tom MacWright
b6fd9cf990 Prevent user dragging 2013-01-24 17:50:08 -05:00
Tom MacWright
df06148355 Look farther up for up tiles 2013-01-22 18:56:09 -05:00
Tom MacWright
1c757a7c20 Improve background cache logic. Fixes #411 2013-01-16 17:36:45 -05:00
Tom MacWright
9fde54c2c7 Inline image css to fix selector perf, was about 3% 2013-01-09 12:53:01 -05: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
3f8a872d79 Double click to add detail to lines. Fixes #298 2013-01-04 12:36:23 -05: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
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