Skip to main content
100%

MY ICE To Create a Country map

✓ Published2🌍 Public
Aakhilgupta11
Last edited Mar 28, 2023
Created on Mar 25, 2023
Forked from HTML Starter

This example renders a choropleth-style map of the United States using the geoAlbersUsaTerritories projection from the geo-albers-usa-territories library, with geographic features drawn as SVG paths via d3.geoPath. The map displays state landmasses in red and state boundaries in yellow using the us-atlas TopoJSON dataset. Built with React hooks, the code fetches the TopoJSON file, converts it to GeoJSON using topojson.feature and topojson.mesh, and renders the result through React components, showing both land and interior boundaries.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes