From f318c73b92996f68195c4339183d660ac2de33f8 Mon Sep 17 00:00:00 2001 From: simonchiang Date: Thu, 25 Jun 2026 12:02:29 +0800 Subject: [PATCH] fix: Mercator stays at [0,15], dynamic center only for orthographic --- resources/js/charts.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/js/charts.js b/resources/js/charts.js index eaecafa..b6a1ea9 100644 --- a/resources/js/charts.js +++ b/resources/js/charts.js @@ -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') {