Raster & Vector I
This example overlays vector street data from a TopoJSON file onto raster map tiles from OpenStreetMap. The visualization uses d3-tile to fetch and position the image tiles, while d3.geoPath renders a black mesh of road lines over them. The map is centered on Detroit using a Mercator projection configured with d3.geoMercator. Both the raster tiles and the vector streets are drawn as SVG elements, combining the two data types in a single static view. The code also loads the TopoJSON with d3.json and converts it to a mesh using the topojson library.
AI-generated descriptionUsing d3-tile to display raster image tiles underneath some TopoJSON vectors. Compare to the zoomable version.
Tiles copyright OpenStreetMap contributors.
forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/94b9fd26e12c586f342d'>Raster & Vector I</a>