Type Alias GenericObject3DOptions

Generic options that apply to both point lights and meshes

type GenericObject3DOptions = {
    altitude?: number;
    altitudeReference?: AltitudeReference;
    lngLat?: LngLatLike;
    visible?: boolean;
}
Index

Properties

altitude?: number

Altitude above the reference (in meters). Default: 0 for meshes, or 2000000 for point lights.

altitudeReference?: AltitudeReference

Reference to compute and adjust the altitude. Default: AltitudeReference.GROUND for meshes and AltitudeReference.MEAN_SEA_LEVEL for point lights.

lngLat?: LngLatLike

Position. Default: [0, 0] (Null Island)

visible?: boolean

Make the object visible or not. Default: true

Was this helpful?