From 41d68e087adf9804dbd102a9270632e734963261 Mon Sep 17 00:00:00 2001 From: fukunee Date: Sat, 19 Sep 2026 02:17:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=8C=E6=94=BF=E5=8C=BA=E5=88=92=E7=BA=BF?= =?UTF-8?q?=E5=8A=A0=E7=B2=97=E3=80=81=E4=B8=AD=E5=8D=8E=E6=B0=91=E5=9B=BD?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E4=B8=AD=E5=9B=BD=E5=8F=B0=E6=B9=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/scene/CesiumGlobe.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/scene/CesiumGlobe.js b/src/scene/CesiumGlobe.js index 2343b66..f9cda1e 100644 --- a/src/scene/CesiumGlobe.js +++ b/src/scene/CesiumGlobe.js @@ -315,7 +315,8 @@ export class CesiumGlobe { const areaKm2 = isPoly ? sphericalAreaKm2(polys) : 0; // 国家名(优先中文),落在 NATURAL EARTH 提供的标注点上,字号按国土面积分级 - const cname = props.NAME_ZH || props.NAME; + let cname = props.NAME_ZH || props.NAME; + if (cname === '中华民国') cname = '中国台湾'; if (cname && props.LABEL_X != null && props.LABEL_Y != null) { const fontSize = areaKm2 > 5e6 ? 30 : areaKm2 > 1.5e6 ? 19 : areaKm2 > 3e5 ? 15 : 12; this.viewer.entities.add({ @@ -341,7 +342,7 @@ export class CesiumGlobe { for (const [lng, lat] of ring) flat.push(lng, lat); const positions = Cesium.Cartesian3.fromDegreesArray(flat); // 行政区划:一根黑线 - lines.push(new Cesium.GeometryInstance({ geometry: new Cesium.GroundPolylineGeometry({ positions, width: 2.0 }) })); + lines.push(new Cesium.GeometryInstance({ geometry: new Cesium.GroundPolylineGeometry({ positions, width: 2.6 }) })); } } }