height = {
const [[x0, y0], [x1, y1]] = d3.geoPath(projection.fitWidth(width, vectors)).bounds(vectors);
const height = Math.ceil(y1 - y0);
const scale = projection.scale() * (2 * Math.PI);
projection.center(projection.invert([width / 2, height / 2]));
projection.scale(Math.pow(2, Math.floor(Math.log2(scale))) / (2 * Math.PI));
projection.translate([width / 2, height / 2]);
return height;
}