城市名:字号13px、黑边黄字、最大显示距离2e6
This commit is contained in:
@@ -605,8 +605,8 @@ export class CesiumGlobe {
|
||||
const scene = this.viewer.scene;
|
||||
const textGold = Cesium.Color.fromCssColorString('#e0c46a');
|
||||
const black = Cesium.Color.fromCssColorString('#14100d');
|
||||
const ddc = new Cesium.DistanceDisplayCondition(0, 4e6);
|
||||
const tdc = new Cesium.NearFarScalar(2e6, 1.0, 4e6, 0.0);
|
||||
const ddc = new Cesium.DistanceDisplayCondition(0, 2e6);
|
||||
const tdc = new Cesium.NearFarScalar(1e6, 1.0, 2e6, 0.0);
|
||||
|
||||
let cities = [];
|
||||
try {
|
||||
@@ -636,8 +636,10 @@ export class CesiumGlobe {
|
||||
labels.add({
|
||||
position,
|
||||
text: c.name,
|
||||
font: 'bold 11px "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif',
|
||||
fillColor: black,
|
||||
font: 'bold 13px "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif',
|
||||
fillColor: textGold,
|
||||
outlineColor: black,
|
||||
outlineWidth: 2,
|
||||
style: Cesium.LabelStyle.FILL,
|
||||
horizontalOrigin: Cesium.HorizontalOrigin.CENTER,
|
||||
verticalOrigin: Cesium.VerticalOrigin.BOTTOM,
|
||||
|
||||
Reference in New Issue
Block a user