@JsType(isNative=true,
namespace="<global>",
name="Object")
public class LabelOptions
extends Object
| Modifier and Type | Field and Description |
|---|---|
Color |
backgroundColor
Gets or sets the background color of this label.
|
Cartesian2 |
backgroundPadding
Gets or sets the background padding, in pixels, of this label.
|
DistanceDisplayCondition |
distanceDisplayCondition
Gets or sets the condition specifying at what distance from the camera that this label will be displayed.
|
Cartesian3 |
eyeOffset
Gets and sets the 3D Cartesian offset applied to this label in eye coordinates.
|
Color |
fillColor
Gets or sets the fill color of this label.
|
String |
font
Gets or sets the font used to draw this label.
|
Number |
heightReference
Gets or sets the height reference of this billboard.
|
Number |
horizontalOrigin
Gets or sets the horizontal origin of this label, which determines if the label is drawn to the left, center, or right of its position.
|
Color |
outlineColor
Gets or sets the outline color of this label.
|
double |
outlineWidth
Get or sets the outline width of this label
|
Cartesian2 |
pixelOffset
Gets or sets the pixel offset in screen space from the origin of this label.
|
NearFarScalar |
pixelOffsetScaleByDistance
Gets or sets near and far pixel offset scaling properties of a Label based on the Label's distance from the camera.
|
Cartesian3 |
position
Gets or sets the Cartesian position of this label.
|
double |
scale
Gets or sets the uniform scale that is multiplied with the label's size in pixels.
|
NearFarScalar |
scaleByDistance
Gets or sets near and far scaling properties of a Label based on the label's distance from the camera.
|
boolean |
show
Determines if this label will be shown.
|
boolean |
showBackground
Determines if a background behind this label will be shown.
|
Number |
style
Gets or sets the style of this label.
|
String |
text
Gets or sets the text of this label.
|
NearFarScalar |
translucencyByDistance
Gets or sets near and far translucency properties of a Label based on the Label's distance from the camera.
|
Number |
verticalOrigin
Gets or sets the vertical origin of this label, which determines if the label is to the above, below,
or at the center of its position.
|
| Constructor and Description |
|---|
LabelOptions() |
@JsProperty public boolean show
@JsProperty public Cartesian3 position
@JsProperty public String text
@JsProperty public String font
@JsProperty public Color fillColor
@JsProperty public Color outlineColor
@JsProperty public double outlineWidth
@JsProperty public boolean showBackground
@JsProperty public Color backgroundColor
@JsProperty public Cartesian2 backgroundPadding
@JsProperty public Number style
LabelStyle@JsProperty public Cartesian2 pixelOffset
@JsProperty public Cartesian3 eyeOffset
@JsProperty public Number horizontalOrigin
HorizontalOrigin@JsProperty public Number verticalOrigin
VerticalOrigin@JsProperty public double scale
@JsProperty public NearFarScalar scaleByDistance
NearFarScalar.nearValue and NearFarScalar.farValue while the camera
distance falls within the upper and lower bounds of the specified NearFarScalar.near and NearFarScalar.far.
Outside of these ranges the label's scale remains clamped to the nearest bound. If undefined,
scaleByDistance will be disabled.@JsProperty public NearFarScalar translucencyByDistance
NearFarScalar.nearValue and NearFarScalar.farValue while
the camera distance falls within the upper and lower bounds of the specified NearFarScalar.near and NearFarScalar.far.
Outside of these ranges the label's translucency remains clamped to the nearest bound.
If undefined, translucencyByDistance will be disabled.@JsProperty public NearFarScalar pixelOffsetScaleByDistance
NearFarScalar.nearValue and NearFarScalar.farValue while
the camera distance falls within the upper and lower bounds of the specified NearFarScalar.near and NearFarScalar.far.
Outside of these ranges the label's pixel offset scaling remains clamped to the nearest bound. If undefined,
pixelOffsetScaleByDistance will be disabled.@JsProperty public Number heightReference
HeightReference.NONE()@JsProperty public DistanceDisplayCondition distanceDisplayCondition
Copyright © 2019. All rights reserved.