d3-geo-albers-usa-vertical
v2.0.0
Published
Adaptations of the Albers USA projection for vertical screens.
Maintainers
Readme
d3-geo-albers-usa-vertical
Map projections compatible with d3-geo that adapt the Albers USA projection for vertical screens.
Installing
If you use NPM, npm install d3-geo-albers-usa-vertical.
import { geoAlbersUsaVertical } from "d3-geo-albers-usa-vertical";
const projection = geoAlbersUsaVertical();Try d3-geo-albers-usa-vertical in your browser.
API Reference
# d3.geoAlbersUsaVertical() · Source
This is a U.S.-centric composite projection of four geoConicEqualArea projections: On the top half of the map, geoAlbers is used for the eastern part of the lower fourty-eight states. On the bottom half of the map, geoAlbers is used for the western part of the lower forty-eight states, and separate conic equal-area projections are used for Alaska and Hawaii. The scale for Alaska is diminished: it is projected at 0.35× its true relative area.
The constituent projections have fixed clip, center and rotation, and thus this projection does not support projection.center, projection.rotate, projection.clipAngle, or projection.clipExtent.
# d3.geoAlbersUsaPrVertical() · Source
A composite projection identical to the U.S. states vertical projection but with another inset for Puerto Rico, projected with geoConicEqualArea and placed to the right of Florida.
# projection.reverse([reverse])
If reverse is specified, sets whether the projection’s layout is reversed. If true, the projection is reversed: the top portion of the map shows the western half of the contiguous U.S. and the Alaska and Hawaii insets, while the bottom portion of the map shows the eastern half of the contiguous U.S. If reverse is not specified, returns the current setting, which defaults to false.
