From 7f6855d9ae8e2cc723ac59219124b7755bed5a0b Mon Sep 17 00:00:00 2001 From: fukunee Date: Sat, 19 Sep 2026 16:14:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E7=AD=BE=E6=94=B9=E5=B0=8F=EF=BC=9B?= =?UTF-8?q?=E5=9B=BD=E5=AE=B6=E5=90=8D=E8=BF=91=E5=A4=84=E4=B8=8D=E5=86=8D?= =?UTF-8?q?=E9=9A=90=E8=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/scene/CesiumGlobe.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scene/CesiumGlobe.js b/src/scene/CesiumGlobe.js index e723c26..5965a66 100644 --- a/src/scene/CesiumGlobe.js +++ b/src/scene/CesiumGlobe.js @@ -430,7 +430,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 ? 30 : areaKm2 > 1.5e6 ? 19 : areaKm2 > 3e5 ? 15 : 12; + const fontSize = areaKm2 > 5e6 ? 22 : areaKm2 > 1.5e6 ? 15 : areaKm2 > 3e5 ? 12 : 10; countryLabels.add({ position: Cesium.Cartesian3.fromDegrees(props.LABEL_X, props.LABEL_Y), text: cname, @@ -439,7 +439,7 @@ export class CesiumGlobe { style: Cesium.LabelStyle.FILL, heightReference: Cesium.HeightReference.CLAMP_TO_GROUND, disableDepthTestDistance: 0, // 背面(视野外)不渲染 - distanceDisplayCondition: new Cesium.DistanceDisplayCondition(1e6, 1e7), + distanceDisplayCondition: new Cesium.DistanceDisplayCondition(0, 1e7), scaleByDistance: new Cesium.NearFarScalar(1e4, 20 / 15, 6e6, 1.0), translucencyByDistance: new Cesium.NearFarScalar(9e6, 1.0, 1e7, 0.0), }); @@ -513,7 +513,7 @@ export class CesiumGlobe { labels.add({ position, text: c.name, - font: 'bold 14px "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif', + font: 'bold 11px "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif', fillColor: black, style: Cesium.LabelStyle.FILL, horizontalOrigin: Cesium.HorizontalOrigin.CENTER,