Extended geographic projections for d3-geo. See Command-Line Cartography for an introduction.
If you use NPM, npm install d3-geo-projection
. Otherwise, download the latest release. You can also load directly from d3js.org as a standalone library. AMD, CommonJS, and vanilla environments are supported. In vanilla, a d3
global is exported:
<script src="https://d3js.org/d3-array.v1.min.js"></script> <script src="https://d3js.org/d3-geo.v1.min.js"></script> <script src="https://d3js.org/d3-geo-projection.v2.min.js"></script> <script> var aitoff = d3.geoAitoff(); </script>
Try d3-geo-projection in your browser.
Note: projections tagged [d3-geo] are exported by d3-geo, not d3-geo-projection. These commonly-used projections are also included in the d3 default bundle.
Airy’s minimum-error azimuthal projection.
Defaults to 90°.
The Aitoff projection.
Albers’ equal-area conic projection.
The armadillo projection. The default center assumes the default parallel of 20° and should be changed if a different parallel is used. Note: requires clipping to the sphere.
Defaults to 20°.
August’s epicycloidal conformal projection.
The Lambert azimuthal equal-area projection.
The azimuthal equidistant projection.
The Baker Dinomic projection.
Berghaus’ star projection. The default center assumes the default lobe number of 5 and should be changed if a different number of lobes is used. Note: requires clipping to the sphere.
If lobes is specified, sets the number of lobes in the resulting star, and returns this projection. If lobes is not specified, returns the current lobe number, which defaults to 5.
Jacques Bertin’s 1953 projection.
The Boggs eumorphic projection. More commonly used in interrupted form.