Skip to main content
100%

Raster & Vector IV

✓ Published0🌍 Public
Mmbostock
Last edited Jul 25, 2019
Created on Mar 13, 2014

This example shows U.S. state capitals as red points on an interactive pan-and-zoom map of the United States, with raster map tiles from OpenStreetMap displayed beneath the vector data. Using d3-tile to load and position the image tiles, d3-zoom to handle pan and zoom gestures, and a d3.geoMercator projection with d3.geoPath to render the point locations from a CSV dataset, the map updates the tile layer and redraws the points on every zoom event, supporting scale levels from 2^11 to 2^14.

AI-generated description

Using d3-tile to display raster image tiles underneath a CSV dataset of point locations (U.S. state capitals), and d3-zoom for pan & zoom. See also the TopoJSON version and the static version.

Tiles copyright OpenStreetMap contributors.

gpl-3.0 Licensed

Similar vizzes