diff --git a/src/scene/CesiumGlobe.js b/src/scene/CesiumGlobe.js index d7cac48..0e95af6 100644 --- a/src/scene/CesiumGlobe.js +++ b/src/scene/CesiumGlobe.js @@ -555,18 +555,20 @@ 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 ? 22 : areaKm2 > 1.5e6 ? 15 : areaKm2 > 3e5 ? 12 : 10; + const fontSize = areaKm2 > 5e6 ? 24 : areaKm2 > 1.5e6 ? 17 : areaKm2 > 3e5 ? 14 : 12; countryLabels.add({ position: Cesium.Cartesian3.fromDegrees(props.LABEL_X, props.LABEL_Y), text: cname, font: `bold ${fontSize}px "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif`, - fillColor: black, + fillColor: textGold, + outlineColor: black, + outlineWidth: 2, style: Cesium.LabelStyle.FILL, heightReference: Cesium.HeightReference.CLAMP_TO_GROUND, disableDepthTestDistance: 1000, // 1km 内不深度测试(近处不消失),远处仍遮挡背面 - distanceDisplayCondition: new Cesium.DistanceDisplayCondition(0, 1e7), + distanceDisplayCondition: new Cesium.DistanceDisplayCondition(0, 6e6), scaleByDistance: new Cesium.NearFarScalar(1e4, 20 / 15, 6e6, 1.0), - translucencyByDistance: new Cesium.NearFarScalar(9e6, 1.0, 1e7, 0.0), + translucencyByDistance: new Cesium.NearFarScalar(5e6, 1.0, 6e6, 0.0), }); }