mbostock/d3 — Issue #486: d3.geom.tile
Author: mbostock
Created: 2012-02-02 18:31:18+00:00
State: open
Labels: req

I'd like to see something like pixymaps built-in to the d3.geom package. One possibility is that, given a rectangular display area (say, a DIV element accessed via selection.call) and a d3.geo.projection, d3.geom.tile could compute which image tiles should be visible in that area, fetch them via a queue, and render them to a canvas with a CSS transform.

I'm not 100% set on the d3.geo.projection dependency: I'm not sure exactly how coordinates get computed for projections other than spherical mercator, and d3.geom.tile should support arbitrary tile quadtrees rather than just maps. So perhaps there's another component needed which converts locations to coordinates, and d3.geom.tile could use that rather than the projection.