Published
Edited
Jul 16, 2019
Insert cell
Insert cell
function geoTransverse(raw) {
function forward(lambda, phi) {
const a = raw(-lambda, phi);
if (a) return [a[1], a[0]];
}

if (raw.invert) {
forward.invert = function(x, y) {
const a = raw.invert(y, x);
if (a) return [-a[0], a[1]];
};
}

const transverse = d3.geoProjection(forward).rotate([0, 0, 90]);
transverse.raw = forward;
return transverse;
}
Insert cell
map(projection)
Insert cell
projection = geoTransverse(d3.geoHillRaw(1)) // d3.geoEquirectangularRaw
Insert cell
import {d3, map} from "@fil/base-map"
Insert cell
// import {map, d3} with {projection} from "@d3/world-map"
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more