Skip to main content
100%

SVG Globe with cities

✓ Published0🌍 Public
SSazerland
Last edited Jun 9, 2018
Created on Jun 9, 2018

An interactive SVG globe displays roughly 48,000 cities from the MaxMind WorldCities database, with each city shown as a red point. Users can pan and zoom the globe, which uses `d3.geoOrthographic` and `d3.geoPath` to render the sphere, graticule, and country borders. The implementation leverages `d3.zoom` for navigation, and dynamically redraws the paths on each zoom or drag event. The city data is loaded from a CSV and plotted as a single `MultiPoint` feature, with population values available but not visually encoded.

AI-generated description

A globe with pan and zoom showing all cities with population data from the MaxMind WorldCities database (~48k cities).

The globe is rendered with SVG. Also compare:

Canvas Globe with cities and

Canvas Globe with cities - buffered


Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/larsvers/'>larsvers</a>'s block: <a href='http://bl.ocks.org/larsvers/f8efeabf480244d59001310f70815b4e'>SVG Globe with cities</a>

mit Licensed

Similar vizzes