From 52b09f5049bf692328535abbc8944aaf3e911105 Mon Sep 17 00:00:00 2001 From: fukunee Date: Sat, 19 Sep 2026 17:30:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E7=AD=BE=E5=AD=97=E5=8F=B7=E5=86=8D?= =?UTF-8?q?=E8=B0=83=E5=A4=A7=EF=BC=9B=E5=9B=BD=E5=AE=B6=E5=90=8D=E6=9C=80?= =?UTF-8?q?=E5=A4=A7=E8=B7=9D=E7=A6=BB=E6=81=A2=E5=A4=8D1e7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/scene/CesiumGlobe.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/scene/CesiumGlobe.js b/src/scene/CesiumGlobe.js index 916334b..14514bc 100644 --- a/src/scene/CesiumGlobe.js +++ b/src/scene/CesiumGlobe.js @@ -555,7 +555,7 @@ export class CesiumGlobe { let cname = props.NAME_ZH || props.NAME; if (cname === '中华民国') cname = '中国台湾'; if (cname && props.LABEL_X != null && props.LABEL_Y != null) { - const fontSize = areaKm2 > 5e6 ? 24 : areaKm2 > 1.5e6 ? 17 : areaKm2 > 3e5 ? 14 : 12; + const fontSize = areaKm2 > 5e6 ? 26 : areaKm2 > 1.5e6 ? 19 : areaKm2 > 3e5 ? 16 : 14; countryLabels.add({ position: Cesium.Cartesian3.fromDegrees(props.LABEL_X, props.LABEL_Y), text: cname, @@ -566,9 +566,9 @@ export class CesiumGlobe { style: Cesium.LabelStyle.FILL_AND_OUTLINE, heightReference: Cesium.HeightReference.CLAMP_TO_GROUND, disableDepthTestDistance: 1000, // 1km 内不深度测试(近处不消失),远处仍遮挡背面 - distanceDisplayCondition: new Cesium.DistanceDisplayCondition(0, 6e6), + distanceDisplayCondition: new Cesium.DistanceDisplayCondition(0, 1e7), scaleByDistance: new Cesium.NearFarScalar(1e4, 20 / 15, 6e6, 1.0), - translucencyByDistance: new Cesium.NearFarScalar(5e6, 1.0, 6e6, 0.0), + translucencyByDistance: new Cesium.NearFarScalar(9e6, 1.0, 1e7, 0.0), }); } @@ -638,7 +638,7 @@ export class CesiumGlobe { labels.add({ position, text: c.name, - font: 'bold 13px "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif', + font: 'bold 15px "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif', fillColor: textGold, outlineColor: black, outlineWidth: 2,