CustomDataSource
CustomDataSource is a kind of data sources, but empty.
It can be thought of as a collection of entities in a sense.
It can have some Entity components as children.
- Cesium element: CustomDataSource
- Example: CustomDataSource
Availability
Inside Viewer or CesiumWidget components.
Properties
Cesium properties
| Property | Type | Description |
|---|---|---|
| show | boolean | |
| clock | DataSourceClock | |
| clustering | EntityCluster | |
| name | string | |
| isLoading | boolean |
Cesium read-only properties
N/A
Cesium events
| Property | Type | Description |
|---|---|---|
| onChange | (customDataSource: CustomDataSource) => void | |
| onError | (customDataSource: CustomDataSource, error: any) => void | |
| onLoading | (customDataSource: CustomDataSource, isLoaded: boolean) => void |
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 | |
| children | ReactNode |