map = {
const svg = d3.select(DOM.svg(width, width/1.6));
const projection = d3.geoMercator()
.center([0, 30])
.scale(200)
.rotate([0,0]);
const path = d3.geoPath()
.projection(projection);
const g = svg.append("g");
g.selectAll("path")
.data(topojson.feature(world, world.objects.countries).features)
.enter()
.append("path")
.attr("d", path)
.style('fill', function(){return 'rgba('+Math.random() * 256+','+Math.random() * 256+','+Math.random() * 256+','+Math.random()+')';})
const zoom = d3.zoom()
.on("zoom", () => {
g.attr("transform", d3.event.transform);
g.selectAll("circle")
.attr("d", path.projection(projection));
g.selectAll("path")
.attr("d", path.projection(projection));
});
svg.call(zoom)
return svg.node();
}