Published
Edited
Aug 2, 2019
1 fork
Insert cell
Insert cell
projection = d3.geoTetrahedralLee()
.rotate([-110, 0, -45])
.angle(120)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
warp = {
const proj = d3.geoStereographic().rotate([-long1, -lat1]);
return function(point) {
const q = proj.scale(r2)(point);
return proj.scale(r1).invert(q);
};
}
Insert cell
Insert cell
// I'm using this object, and the function below, to update the warped GeoJSON without re-computing the MAP cell.
// There's probably a better observable way to do this with *mutable* but I still can't wrap my head around it^^
remapped = ({})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
land = d3.json(
"https://unpkg.com/visionscarto-world-atlas@0.0.6/world/110m_land.geojson"
)
Insert cell
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