Hammer
The example shows a world map using the Hammer projection, with landmasses rendered in dark gray and country boundaries outlined in white against a graticule. It demonstrates how the projection’s coefficient B can be customized, though the code displays the default B=2. Using D3 v3, it applies `d3.geo.hammer` from the geo.projection plugin, `d3.geo.path` for geographic rendering, and `d3.geo.graticule` for the grid. TopoJSON data from a remote world-50m file is converted with `topojson.feature` and `topojson.mesh` to draw land and boundaries into an SVG.
AI-generated descriptionThe Hammer projection is available as d3.geo.hammer in the geo.projection D3 plugin. As described by Bernhard Jenny, this projection can be customized with a coefficient B. The default B = 2 produces the standard Hammer projection as shown above; 1 produces the Lambert azimuthal equal-area projection, 4 produces the Eckert–Greifendorff projection, and ∞ produces the quartic authalic projection. Briesemeister produced a modified oblique Hammer projection with an aspect ratio of 1.75:1 rather than 2:1.