ConstructorOptions
Initialization options for the Label constructor
See also
Properties
A Color specifying the background color of the label. Default value - Color(0.165, 0.165, 0.165, 0.8)
A Cartesian2 Specifying the horizontal and vertical background padding in pixels. Default value - Cartesian2(7, 5)
A number specifying the distance from the camera at which to disable the depth test to, for example, prevent clipping against terrain.
A DistanceDisplayCondition specifying at what distance from the camera that this label will be displayed.
A Cartesian3 specifying the 3D Cartesian offset applied to this label in eye coordinates. Default value - Cartesian3.ZERO
A Color specifying the fill color of the label. Default value - Color.WHITE
A HeightReference specifying the height reference of this label. Default value - HeightReference.NONE
A HorizontalOrigin specifying the horizontal origin of this label. Default value - HorizontalOrigin.LEFT
A user-defined object to return when the label is picked with Scene.pick.
A Color specifying the outline color of the label. Default value - Color.BLACK
A number specifying the outline width of the label. Default value - 1.0
A Cartesian2 specifying the pixel offset in screen space from the origin of this label. Default value - Cartesian2.ZERO
A NearFarScalar specifying near and far pixel offset scaling properties of the label based on the label's distance from the camera.
The cartesian position of the label.
A NearFarScalar specifying near and far scaling properties of the label based on the label's distance from the camera.
Determines if a background behind this label will be shown. Default value - false
A LabelStyle specifying the style of the label. Default value - LabelStyle.FILL
A NearFarScalar specifying near and far translucency properties of the label based on the label's distance from the camera.
A VerticalOrigin specifying the vertical origin of this label. Default value - VerticalOrigin.BASELINE