Skip to main content
100%

Pixymaps (Dragging)

✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Aug 29, 2011

This example shows a draggable, tile-based map of San Francisco rendered on an HTML5 Canvas using `pixymaps` with D3 v3. Users pan the view by dragging the mouse, which triggers `view.panBy()` and re-renders the map. The map tiles are loaded from CloudMade and OpenStreetMap, with a cached, least-recently-used tile system. The map projection uses `d3.geo.mercator`, and the viewport transforms the canvas with a CSS `matrix3d` translation.

AI-generated description
gpl-3.0 Licensed

Similar vizzes