PointGraphics
是一种CesiumJS实体属性,用于定义点实体的外观和行为。
color
Color
Color.WHITE
pixelSize
Number
1.0
outlineColor
Color
Color.BLACK
outlineWidth
Number
0.0
show
Boolean
true
scaleByDistance
NearFarScalar
undefined
translucencyByDistance
NearFarScalar
undefined
heightReference
HeightReference
HeightReference.NONE
distanceDisplayCondition
DistanceDisplayCondition
undefined
disableDepthTestDistance
Number
Number.POSITIVE_INFINITY
viewer.entities.add({
position: Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883),
point: {
pixelSize : 10,
color : Cesium.Color.YELLOW,
outlineColor : Cesium.Color.BLACK,
outlineWidth : 2,
heightReference: Cesium.HeightReference.CLAMP_TO_GROUND
}
});