OP solution for its own problem, quoted and formatted from comments:
I changed the map style to:
#map { width: 100%; height: 100%; }
The outline layer style has been changed as follows:
cont_layer .attr("width","8000px") .attr("height","8000px") .style("position","absolute") .style("top","-4000px") .style("left","-4000px");
The x and y coordinates of the SVG paths must be shifted + 4000 pixels to compensate.
source share