map = {
const path = d3.geoPath(projection);
const svg = d3.create("svg")
.attr("width", width)
.attr("height", height);
svg.append("g")
.selectAll("path")
.data(topojson.feature(es, es.objects.provinces).features)
.join("path")
.attr("fill", '#ccc')
.attr("d", path);
svg.append("path")
.datum(topojson.mesh(es, es.objects.provinces, (a, b) => a !== b))
.attr("fill", "none")
.attr("stroke", "white")
.attr("stroke-opacity", 0.25)
.attr("d", path);
svg.append("path")
.datum(topojson.mesh(es, es.objects.autonomous_regions, (a, b) => a !== b))
.attr("fill", "none")
.attr("stroke", "white")
.attr("d", path);
svg
.append("path")
.attr("d", projection.getCompositionBorders())
.attr("fill", "none")
.attr("stroke", "black");
return svg.node();
}