Skip to main content
100%

[Working with spatial data](https://github.com/enjalot/wwsd)

✓ Published0🌍 Public
KKristinHenry
Last edited Jun 26, 2016
Created on Jun 26, 2016

This example demonstrates how to map geospatial data using d3.js projections. It renders a world map with a custom cylindrical projection and highlights two points with red circles, including one at San Francisco’s coordinates. The code uses `d3.geo.projection`, `d3.geo.path`, and `d3.geo.mercator`, along with TopoJSON to load world-110m GeoJSON data. The map and points are drawn as SVG elements, with the projection scale and translation set explicitly.

AI-generated description

Working with spatial data

Example #6

Working with d3.js projections for mapping geospatial data

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/enjalot/'>enjalot</a>'s block: <a href='http://bl.ocks.org/enjalot/c069550b4fc4fb409430829f07bd78f2'>WWSD #6: d3.js projections</a>

forked from <a href='http://bl.ocks.org/KristinHenry/'>KristinHenry</a>'s block: <a href='http://bl.ocks.org/KristinHenry/7c6b6578109c909adcc23aadd64fcbb3'>WWSD #6: d3.js projections</a>

forked from <a href='http://bl.ocks.org/KristinHenry/'>KristinHenry</a>'s block: <a href='http://bl.ocks.org/KristinHenry/4535a0dd666b8df5be6afcdb9d3994c9'>WWSD #6: d3.js projections</a>

forked from <a href='http://bl.ocks.org/KristinHenry/'>KristinHenry</a>'s block: <a href='http://bl.ocks.org/KristinHenry/d6955cd79349d1227c7402fde10626a9'>WWSD #6: d3.js projections</a>

Similar vizzes