html`
<main style="display: flex;">
${Plot.plot({
marginLeft: 10,
marginRight: 10,
width: width / 2 - 20,
height: width / 2 - 20,
projection: ({ width, height }) =>
d3
.geoOrthographic()
.translate([width / 2, height / 2])
.rotate([-sun[0], -sun[1], 0]),
marks: [
Plot.graticule(),
Plot.geo(land, { fill: "#000" }),
Plot.geo(sphere, { stroke: "#000" })
]
})}
${Plot.plot({
marginLeft: 10,
marginRight: 10,
width: width / 2 - 20,
height: width / 2 - 20,
projection: ({ width, height }) =>
d3
.geoOrthographic()
.translate([width / 2, height / 2])
.rotate([180 - sun[0], sun[1], 0]),
marks: [
Plot.graticule(),
Plot.geo(land, { fill: "#000" }),
Plot.geo(sphere, { stroke: "#000", fill: "rgba(0,0,255,0.3)" })
]
})}
`