score:9

Accepted answer

I would create two separate g elements for the layers in the beginning. This way you can control their order:

var countourG = svg.append("g"),
    streetG = svg.append("g");

d3.json("streets.json", function(error, topology) {
  streetG.selectAll("path")...
});

d3.json("contour.json", function(error, topology) {
  contourG.selectAll("path")...
});

Related Query