map = {
const context = DOM.context2d(width, height);
const path = d3.geoPath(projection, context);
function render() {
context.clearRect(0, 0, width, height);
context.lineWidth = 2;
context.fillStyle = "#adf", context.strokeStyle = "#000";
context.beginPath(), path({type: "Sphere"}), context.fill(), context.stroke();
context.fillStyle = "#222";
context.beginPath(), path(land), context.fill();
context.strokeStyle = selectedColor;
context.lineWidth = 0.5;
context.beginPath(), path(selectedData), context.stroke();
}
return d3.select(context.canvas)
.call(drag(projection).on("drag.render", render))
.call(render)
.node();
}