{
const width = 900
const height = 500
const svg = d3.create('svg')
.attr("width",width)
.attr("height",height);
const group = svg.append("g")
const group2 = svg.append("g")
const projection = d3.geoMercator()
.center([-64.857, 32.318])
.scale(800000)
.rotate([0, 0, 0]);
const path = d3.geoPath()
.projection(projection)
.pointRadius(3.5);
const pathLine = d3.line()
.x(function (d) { return projection([d.lon, d.lat])[0]; })
.y(function (d) { return projection([d.lon, d.lat])[1]; });
group.selectAll("path")
.data(topojson.feature(boundaries2010, boundaries2010.objects.boundaries)
.features)
.enter()
.append("path")
.attr("d", path)
.style('fill', '#bbb')
.style('stroke','none')
d3.json(nzl_4)
.then(function(data){
group
.append("path")
.style("stroke-width", "10px")
.style("opacity", 1)
.style("stroke", function () { return "orange"; })
.attr("d", pathLine(data))
});
return svg.node();
}