Describes a two dimensional label located at the position of the containing Entity
Example labels
alias LabelGraphics
- The options object takes the following properties
- {Property} [options.text] A Property specifying the text.
- {Property} [options.font='10px sans-serif'] A Property specifying the CSS font.
- {Property} [options.style=LabelStyle.FILL] A Property specifying the LabelStyle
- {Property} [options.fillColor=Color.WHITE] A Property specifying the fill Color
- {Property} [options.outlineColor=Color.BLACK] A Property specifying the outline Color
- {Property} [options.outlineWidth=1.0] A numeric Property specifying the outline width.
- {Property} [options.show=true] A boolean Property specifying the visibility of the label.
- {Property} [options.scale=1.0] A numeric Property specifying the scale to apply to the text.
- {Property} [options.horizontalOrigin=HorizontalOrigin.CENTER] A Property specifying the HorizontalOrigin
- {Property} [options.verticalOrigin=VerticalOrigin.CENTER] A Property specifying the VerticalOrigin
- {Property} [options.eyeOffset=Cartesian3.ZERO] A Cartesian3 Property specifying the eye offset.
- {Property} [options.pixelOffset=Cartesian2.ZERO] A Cartesian2 Property specifying the pixel offset.
- {Property} [options.translucencyByDistance] A NearFarScalar Property used to set translucency based on distance from the camera.
- {Property} [options.pixelOffsetScaleByDistance] A NearFarScalar Property used to set pixelOffset based on distance from the camera.
Describes a two dimensional label located at the position of the containing Entity
Example labels
alias LabelGraphics
- The options object takes the following properties - {Property} [options.text] A Property specifying the text. - {Property} [options.font='10px sans-serif'] A Property specifying the CSS font. - {Property} [options.style=LabelStyle.FILL] A Property specifying the LabelStyle - {Property} [options.fillColor=Color.WHITE] A Property specifying the fill Color - {Property} [options.outlineColor=Color.BLACK] A Property specifying the outline Color - {Property} [options.outlineWidth=1.0] A numeric Property specifying the outline width. - {Property} [options.show=true] A boolean Property specifying the visibility of the label. - {Property} [options.scale=1.0] A numeric Property specifying the scale to apply to the text. - {Property} [options.horizontalOrigin=HorizontalOrigin.CENTER] A Property specifying the HorizontalOrigin - {Property} [options.verticalOrigin=VerticalOrigin.CENTER] A Property specifying the VerticalOrigin - {Property} [options.eyeOffset=Cartesian3.ZERO] A Cartesian3 Property specifying the eye offset. - {Property} [options.pixelOffset=Cartesian2.ZERO] A Cartesian2 Property specifying the pixel offset. - {Property} [options.translucencyByDistance] A NearFarScalar Property used to set translucency based on distance from the camera. - {Property} [options.pixelOffsetScaleByDistance] A NearFarScalar Property used to set pixelOffset based on distance from the camera.
demo Sandcastle Labels Demo