fix: Mercator stays at [0,15], dynamic center only for orthographic

This commit is contained in:
2026-06-25 12:02:29 +08:00
parent c2680a17fb
commit f318c73b92
+1 -2
View File
@@ -551,10 +551,9 @@ function WorldMap(selection) {
}
function setProjection(type) {
if (type === 'mercator') {
var ctr = getBestCenter();
const bScale = baseScale();
projection = d3.geoMercator()
.center(ctr)
.center([0, 15])
.scale(bScale)
.translate([innerW() / 2, height / 1.5]);
} else if (type === 'orthographic') {