score:1

OP's solution to their own problem, quoted and reformatted from the comments:

I changed the map style to:

#map {
  width: 100%;
  height: 100%;
}

The style of the contour layer got modified like this:

cont_layer
    .attr("width","8000px")
    .attr("height","8000px")
    .style("position","absolute")
    .style("top","-4000px")
    .style("left","-4000px");

x and y coordinates of the SVG paths have to be shifted by +4000px to compensate.


Related Query

More Query from same tag