Skip to main content
100%

Vector Tiles

✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Jun 17, 2013

This example displays vector-tiled map data, rendering both road networks and building footprints over San Francisco. The visualization loads GeoJSON tiles from an external OpenStreetMap vector-datasource service and projects them using `d3.geo.mercator` and `d3.geo.path`. It employs the custom `d3.geo.tile` helper to compute visible tile coordinates at the current zoom level, then asynchronously fetches and draws each tile’s features as SVG paths. Road types are distinguished by stroke colors, while buildings appear as solid black polygons.

AI-generated description

Adapting the earlier OSM vector tiles example to show how to render multiple layers.

gpl-3.0 Licensed

Similar vizzes