Label
Lavbel is a label primitive in the LabelCollection.
Primitive is a low layer API for geographical visualization. Entity is more recommended unless performance issues.
Availability
Only inside LabelCollection component. A label object will be attached to the parent LabelCollection.
Properties
Cesium properties
| Property | Type | Description |
|---|---|---|
| position | Cartesian3 | |
| disableDepthTestDistance | number | |
| distanceDisplayCondition | DistanceDisplayCondition | |
| eyeOffset | Cartesian3 | |
| heightReference | HeightReference | |
| horizontalOrigin | HorizontalOrigin | |
| pixelOffset | Cartesian2 | |
| pixelOffsetScaleByDistance | NearFarScalar | |
| scale | number | |
| scaleByDistance | NearFarScalar | |
| show | boolean | |
| translucencyByDistance | NearFarScalar | |
| verticalOrigin | VerticalOrigin | |
| id | any | |
| outlineColor | Color | |
| outlineWidth | number | |
| style | LabelStyle | |
| backgroundColor | Color | |
| backgroundPadding | Cartesian2 | |
| fillColor | Color | |
| font | string | |
| showBackground | boolean | |
| text | string |
Cesium read-only properties
N/A
Cesium events
N/A
Other properties
| Property | Type | Description |
|---|---|---|
| onClick | (movement: CesiumMovementEvent, target: T) => void | |
| onDoubleClick | (movement: CesiumMovementEvent, target: T) => void | |
| onMouseDown | (movement: CesiumMovementEvent, target: T) => void | |
| onMouseUp | (movement: CesiumMovementEvent, target: T) => void | |
| onMiddleClick | (movement: CesiumMovementEvent, target: T) => void | |
| onMiddleDown | (movement: CesiumMovementEvent, target: T) => void | |
| onMiddleUp | (movement: CesiumMovementEvent, target: T) => void | |
| onMouseMove | (movement: CesiumMovementEvent, target: T) => void | |
| onPinchEnd | (movement: CesiumMovementEvent, target: T) => void | |
| onPinchMove | (movement: CesiumMovementEvent, target: T) => void | |
| onPinchStart | (movement: CesiumMovementEvent, target: T) => void | |
| onRightClick | (movement: CesiumMovementEvent, target: T) => void | |
| onRightDown | (movement: CesiumMovementEvent, target: T) => void | |
| onRightUp | (movement: CesiumMovementEvent, target: T) => void | |
| onMouseEnter | (movement: CesiumMovementEvent, target: T) => void | |
| onMouseLeave | (movement: CesiumMovementEvent, target: T) => void |