Appearance
KBE3D / KBCore / Cesium / Label / ConstructorOptions
接口: ConstructorOptions
Initialization options for the Label constructor
属性
position
position:
Cartesian3
The cartesian position of the label.
id?
optionalid:any
A user-defined object to return when the label is picked with Scene#pick.
show?
optionalshow:boolean
Determines if this label will be shown.
text?
optionaltext:string
A string specifying the text of the label.
font?
optionalfont:string
A string specifying the font used to draw this label. Fonts are specified using the same syntax as the CSS 'font' property.
style?
optionalstyle:LabelStyle
A LabelStyle specifying the style of the label.
scale?
optionalscale:number
A number specifying the uniform scale that is multiplied with the label size.
showBackground?
optionalshowBackground:boolean
Determines if a background behind this label will be shown.
backgroundColor?
optionalbackgroundColor:Color
A Color specifying the background color of the label.
backgroundPadding?
optionalbackgroundPadding:Cartesian2
A Cartesian2 Specifying the horizontal and vertical background padding in pixels.
pixelOffset?
optionalpixelOffset:Cartesian2
A Cartesian2 specifying the pixel offset in screen space from the origin of this label.
eyeOffset?
optionaleyeOffset:Cartesian3
A Cartesian3 specifying the 3D Cartesian offset applied to this label in eye coordinates.
horizontalOrigin?
optionalhorizontalOrigin:HorizontalOrigin
A HorizontalOrigin specifying the horizontal origin of this label.
verticalOrigin?
optionalverticalOrigin:VerticalOrigin
A VerticalOrigin specifying the vertical origin of this label.
heightReference?
optionalheightReference:HeightReference
A HeightReference specifying the height reference of this label.
fillColor?
optionalfillColor:Color
A Color specifying the fill color of the label.
outlineColor?
optionaloutlineColor:Color
A Color specifying the outline color of the label.
outlineWidth?
optionaloutlineWidth:number
A number specifying the outline width of the label.
translucencyByDistance?
optionaltranslucencyByDistance:NearFarScalar
A NearFarScalar specifying near and far translucency properties of the label based on the label's distance from the camera.
pixelOffsetScaleByDistance?
optionalpixelOffsetScaleByDistance:NearFarScalar
A NearFarScalar specifying near and far pixel offset scaling properties of the label based on the label's distance from the camera.
scaleByDistance?
optionalscaleByDistance:NearFarScalar
A NearFarScalar specifying near and far scaling properties of the label based on the label's distance from the camera.
distanceDisplayCondition?
optionaldistanceDisplayCondition:DistanceDisplayCondition
A DistanceDisplayCondition specifying at what distance from the camera that this label will be displayed.
disableDepthTestDistance?
optionaldisableDepthTestDistance:number
The distance from the camera, beyond which, depth testing is disabled—to, for example, prevent clipping against terrain.
