function clicked(region) {
const plot = d3.select(map).select('.plot');
const thisRegion = mapRegions.filter(d => d.region === region)[0];
const x0 = thisRegion.bounds[0][0];
const y0 = thisRegion.bounds[0][1];
const x1 = thisRegion.bounds[1][0];
const y1 = thisRegion.bounds[1][1];
const xy0 = myProjection([x0, y0]);
const xy1 = myProjection([x1, y1]);
const xy = myProjection([(x0 + x1) / 2, (y0 + y1) / 2]);
const separation_x = xy1[0] - xy0[0];
const separation_y = xy0[1] - xy1[1];
const scale = Math.max(1, Math.min(4, 0.9 / Math.max(separation_x / width, separation_y / height)));
const transform = `translate(${width_a / 2},${height / 2})scale(${scale})translate(${-xy[0]},${-xy[1]})`;
plot
.attr("transform", transform);
plot.selectAll(".country")
.style("stroke-width", 0.5 / scale);
plot.selectAll(".disputed")
.style('stroke-dasharray', 2 / scale)
.style("stroke-width", 1.5 / scale);
}