|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
* @Author: cbwu 504-wuchengbo@htsdfp.com
|
|
|
|
|
* @Date: 2024-04-10 08:53:12
|
|
|
|
|
* @LastEditors: cbwu
|
|
|
|
|
* @LastEditTime: 2024-04-10 16:29:56
|
|
|
|
|
* @LastEditTime: 2024-04-11 09:09:38
|
|
|
|
|
* @Description: 广告牌对象
|
|
|
|
|
*/
|
|
|
|
|
import { Entity, Cartesian3, Cartesian2, Color, HeightReference } from 'cesium'
|
|
|
|
@ -21,14 +21,16 @@ export class BillBoard extends Entity {
|
|
|
|
|
scale: 1,
|
|
|
|
|
// 设置实体贴地
|
|
|
|
|
heightReference: HeightReference.CLAMP_TO_GROUND,
|
|
|
|
|
// disableDepthTestDistance: Number.POSITIVE_INFINITY, // 可能会提高在不同角度下的清晰度
|
|
|
|
|
disableDepthTestDistance: Number.POSITIVE_INFINITY, // 可能会提高在不同角度下的清晰度
|
|
|
|
|
},
|
|
|
|
|
label: {
|
|
|
|
|
text: 'Maker1',
|
|
|
|
|
font: '32px sans-serif',
|
|
|
|
|
scale: 0.5,
|
|
|
|
|
pixelOffset: new Cartesian2(45, -5),
|
|
|
|
|
heightReference: HeightReference.CLAMP_TO_GROUND,
|
|
|
|
|
disableDepthTestDistance: Number.POSITIVE_INFINITY, // 可能会提高在不同角度下的清晰度
|
|
|
|
|
},
|
|
|
|
|
// label: {
|
|
|
|
|
// text: 'Maker1',
|
|
|
|
|
// font: '16px sans-serif',
|
|
|
|
|
// scale: 1,
|
|
|
|
|
// pixelOffset: new Cartesian2(5, 0),
|
|
|
|
|
// },
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|