map = {
const context = DOM.context2d(width, height);
const path = d3.geoPath(null, context);
context.canvas.style.maxWidth = "100%";
context.lineJoin = "round";
context.lineCap = "round";
context.fillStyle = "green";
context.globalAlpha = 0.2;
data.objects.BAUMKATOGDPoint.geometries.forEach(tree => {
context.fillRect(
projection(tree.coordinates)[0],
projection(tree.coordinates)[1],
1,
1
);
});
context.globalAlpha = 0.6;
context.beginPath();
d3
.geoPath()
.projection(projection)
.context(context)(danubeGeojson);
context.lineWidth = 6;
context.strokeStyle = "lightblue";
context.stroke();
return context.canvas;
}