Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Zoomable map

Public visualization

Viewing a saved revision (read-only)

65ce3c32a8ca47238af8c65a669e5cc8

Zoomable map

0 stars0🌍 Public
JJoachim Klug
Last edited Sep 25, 2020
Created on Sep 25, 2020

This example displays an interactive world map with countries colored in green and oceans in blue. The map automatically zooms and pans when the user scrolls or drags, smoothly adjusting the projection within a defined scale range. The visualization uses d3.geoNaturalEarth1 for the projection, d3.geoPath to render geographic shapes, and d3.zoom for pan and zoom controls. It loads country boundaries from the `world-atlas` GeoJSON dataset and uses `topojson.feature` to convert them into GeoJSON features.

AI-generated description