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,