Published
Edited
Jan 18, 2021
1 star
Insert cell
Insert cell
initialCoordinate = Cesium.Cartographic.fromDegrees(0, 85, 0)
Insert cell
initialHeading = Cesium.Math.toRadians(165)
Insert cell
Insert cell
Insert cell
Insert cell
sphere = ({type: "Sphere"})
Insert cell
graticule = d3.geoGraticule10()
Insert cell
land = topojson.feature(world, world.objects.land)
Insert cell
world = FileAttachment("land-50m.json").json()
Insert cell
topojson = require("topojson-client@3")
Insert cell
d3 = require("d3@6")
Insert cell
_ = require('lodash@4.17')
Insert cell
earth = Cesium.Ellipsoid.WGS84
Insert cell
Insert cell
Insert cell
Insert cell
Cesium = require('https://cesium.com/downloads/cesiumjs/releases/1.77/Build/Cesium/Cesium.js')
Insert cell
cc = require('cesium-cartographic@0.1.0')
Insert cell
function* xrange(start, stop, step)
{
if(stop === undefined)
{
stop = start;
start = 0;
}

if(step === undefined)
{
step = 1;
}
for(let i=start; start < stop ? i < stop : i > stop; i += step)
{
yield i;
}
}
Insert cell
function assert (x, str = 'assertion failed') {
if (!x) {
throw new Error(str)
}
}
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