PointGraphics

new Cesium.PointGraphics(options)

Describes a graphical point located at the position of the containing Entity.
参数名称 类型 描述信息
options PointGraphics.ConstructorOptions 可选 Object describing initialization options

成员(属性)

Gets or sets the Property specifying the Color of the point.
默认值: Color.WHITE
Gets the event that is raised whenever a property or sub-property is changed or modified.

disableDepthTestDistance : Property|undefined

Gets or sets the distance from the camera at which to disable the depth test to, for example, prevent clipping against terrain. When set to zero, the depth test is always applied. When set to Number.POSITIVE_INFINITY, the depth test is never applied.

distanceDisplayCondition : Property|undefined

Gets or sets the DistanceDisplayCondition Property specifying at what distance from the camera that this point will be displayed.
Gets or sets the Property specifying the HeightReference.
默认值: HeightReference.NONE
Gets or sets the Property specifying the Color of the outline.
默认值: Color.BLACK
Gets or sets the numeric Property specifying the the outline width in pixels.
默认值: 0
Gets or sets the numeric Property specifying the size in pixels.
默认值: 1
Gets or sets the NearFarScalar Property used to scale the point based on distance. If undefined, a constant size is used.
Gets or sets the boolean Property specifying the visibility of the point.
默认值: true
Gets or sets the Property specifying the SplitDirection of this point.
默认值: SplitDirection.NONE

translucencyByDistance : Property|undefined

Gets or sets NearFarScalar Property specifying the translucency of the point based on the distance from the camera. A point's translucency will interpolate between the NearFarScalar#nearValue and NearFarScalar#farValue while the camera distance falls within the lower and upper bounds of the specified NearFarScalar#near and NearFarScalar#far. Outside of these ranges the points's translucency remains clamped to the nearest bound.

方法

Duplicates this instance.
参数名称 类型 描述信息
result PointGraphics 可选 The object onto which to store the result.
返回值:
The modified result parameter or a new instance if one was not provided.
Assigns each unassigned property on this object to the value of the same property on the provided source object.
参数名称 类型 描述信息
source PointGraphics The object to be merged into this object.

定义的类型

Cesium.PointGraphics.ConstructorOptions

Initialization options for the PointGraphics constructor
属性:
属性名称 类型 可选 默认值 描述信息
show Property | boolean <可选>
true A boolean Property specifying the visibility of the point.
pixelSize Property | number <可选>
1 A numeric Property specifying the size in pixels.
heightReference Property | HeightReference <可选>
HeightReference.NONE A Property specifying what the height is relative to.
color Property | Color <可选>
Color.WHITE A Property specifying the Color of the point.
outlineColor Property | Color <可选>
Color.BLACK A Property specifying the Color of the outline.
outlineWidth Property | number <可选>
0 A numeric Property specifying the the outline width in pixels.
scaleByDistance Property | NearFarScalar <可选>
A NearFarScalar Property used to scale the point based on distance.
translucencyByDistance Property | NearFarScalar <可选>
A NearFarScalar Property used to set translucency based on distance from the camera.
distanceDisplayCondition Property | DistanceDisplayCondition <可选>
A Property specifying at what distance from the camera that this point will be displayed.
disableDepthTestDistance Property | number <可选>
A Property specifying the distance from the camera at which to disable the depth test to.
splitDirection Property | SplitDirection <可选>
A Property specifying the SplitDirection split to apply to this point.