map = {
const context = DOM.context2d(width, height);
const path = d3.geoPath(projection, context);
context.beginPath(),
path(graticule),
(context.strokeStyle = "#ccc"),
context.stroke();
context.beginPath(), path(land), (context.fillStyle = "#000"), context.fill();
context.beginPath(),
path({ type: "Polygon", coordinates: [days.map(d => sunAtTime(d))] }),
(context.strokeStyle = "#f00"),
context.stroke();
context.beginPath(),
path({ type: "Point", coordinates: sun }),
(context.fillStyle = "#f00"),
context.fill();
context.beginPath(),
path(sphere),
(context.strokeStyle = "#000"),
context.stroke();
return context.canvas;
}