{
let svg = d3.select(DOM.svg(ow, oh)),
width = +svg.attr("width"),
height = +svg.attr("height"),
margin = {top: 20, right: 30, bottom: 30, left: 40};
svg.selectAll("path.area")
.data(polygonsWithCentroids)
.enter().append("path")
.attr("fill", "#000")
.attr('class', 'area')
.attr("d", d3.geoPath());
svg.selectAll("path.centroid")
.data([centroids])
.enter().append("path")
.attr("fill", "#0ff")
.attr('class', 'centroid')
.attr("d", d3.geoPath().pointRadius(2));
return svg.node();
}