Vector Tiles
This example displays a static map of San Francisco’s roads, styled by road type, without panning or zooming. It uses Mapzen vector tiles served as GeoJSON, with the D3.js v3 library and a custom `d3.geo.tile` helper to compute tile coordinates. The SVG paths are rendered via `d3.geo.path` with a Mercator projection, and the code fetches tile data asynchronously using `d3.json`. Road classes like highways and rails are distinguished by CSS classes. Data comes from OpenStreetMap through Mapzen’s vector tile API.
AI-generated descriptionA simpler example of Mapzen vector tiles, without panning and zooming. Just a static map!
Map tiles © OpenStreetMap contributors, Who’s On First.
forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/5616813'>Vector Tiles</a>