Skip to main content
100%

AlbersUSA + PR

✓ Published0🌍 Public
Mmbostock
Last edited Aug 31, 2019
Created on May 22, 2013

This example presents a modified Albers USA map projection that includes Puerto Rico, rendered as an SVG using D3.js v3 and TopoJSON. The code defines a custom `albersUsaPr()` function, which composes four separate conic equal-area projections for the lower 48 states, Alaska, Hawaii, and Puerto Rico, each with its own translation and clipping. The map displays graticules and a sphere outline via `d3.geo.graticule()` and `d3.geo.path()`, and it loads US state boundaries from an external JSON file. Interactive mouse movement logs the projected coordinates using `projection.invert()`.

AI-generated description

A modified version of d3.geo.albersUsa that includes Puerto Rico.

gpl-3.0 Licensed

Similar vizzes