Published
Edited
Aug 5, 2019
2 forks
Importers
3 stars
Insert cell
Insert cell
projection = d3.geoPeirceQuincuncial().rotate([51.2, -87, -44.7])
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/50m_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