Plot.plot({
projection: "equal-earth",
width: 1000,
color: {
type: "log",
scheme: "turbo",
none: "white",
domain: [1000, 20000000],
legend: true,
label: "Population"
},
marks: [
Plot.raster(raster[0], {
width: raster.width,
height: raster.height,
x1: bb[0],
y1: bb[3],
x2: bb[2],
y2: bb[1],
interpolate: "nearest",
clip: "sphere"
}),
Plot.geo(await FileAttachment("world.json").json(), {
fill: "none",
stroke: "white",
strokeWidth: 0.2
})
]
})