d3-geo-projection
Version:
Extended geographic projections for d3-geo.
17 lines (14 loc) • 423 B
JavaScript
import {hammerRaw} from "../hammer.js";
import interrupt from "./index.js";
var lobes = [[ // northern hemisphere
[[-180, 0], [-90, 90], [ 0, 0]],
[[ 0, 0], [ 90, 90], [ 180, 0]]
], [ // southern hemisphere
[[-180, 0], [-90, -90], [ 0, 0]],
[[ 0, 0], [ 90, -90], [180, 0]]
]];
export default function() {
return interrupt(hammerRaw(Infinity), lobes)
.rotate([20, 0])
.scale(152.63);
}