Skip to Content
APIConfigurationInterface: GLBPlacementConfig

Interface: GLBPlacementConfig

One placed instance of a GLB asset.

Properties

assetId

assetId: string

References GLBAssetConfig.id.


id

id: string

Unique id for this instance (logging, updates).


offset?

optional offset?: GLBModelOffset;

Per-instance offset in map-space meters, applied after GLBAssetConfig.defaultModelOffset. y: 0.7 raises this specific placement by 0.7 m, e.g. to sit on top of a fill-extrusion-height: 0.7 layer.


position

position: GLBPlacementPosition

rotation?

optional rotation?: Rotation3D;

Additional rotation in degrees after the asset’s defaultRotation (runtime converts to radians).


routeTransparency?

optional routeTransparency?: RouteTransparencyConfig;

Placement-level route-based transparency. Highest precedence: overrides both GLBAssetConfig.routeTransparency and Models3DConfig.routeTransparency.


scale?

optional scale?: number | readonly [number, number, number];

Overrides GLBAssetConfig.defaultScale for this instance.


visibility

visibility: GLBPlacementVisibility

zoomTransparency?

optional zoomTransparency?: ZoomTransparencyConfig;

Placement-level zoom-based transparency. Highest precedence: overrides both GLBAssetConfig.zoomTransparency and Models3DConfig.zoomTransparency.

Last updated on