Skip to Content
APIConfigurationInterface: GLBAssetConfig

Interface: GLBAssetConfig

Declares a GLB file once; referenced by GLBPlacementConfig.assetId.

Properties

defaultModelOffset?

optional defaultModelOffset?: GLBModelOffset;

Asset-wide offset in map-space meters added to every placement of this asset, before the per-placement GLBPlacementConfig.offset. Applied on the unscaled pivot, so y: 0.7 raises the model by exactly 0.7 m regardless of defaultScale.


defaultRotation?

optional defaultRotation?: Rotation3D;

Base rotation in degrees; merged with each placement’s rotation (runtime converts to radians).


defaultScale?

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

Default uniform scale or per-axis scale before placement overrides.


id

id: string

Unique id among all assets in this map config.


routeTransparency?

optional routeTransparency?: RouteTransparencyConfig;

Asset-level route-based transparency. Overrides Models3DConfig.routeTransparency and is itself overridden by GLBPlacementConfig.routeTransparency.


url

url: string

URL of the .glb file (same-origin or CORS-enabled).


zoomTransparency?

optional zoomTransparency?: ZoomTransparencyConfig;

Asset-level zoom-based transparency. Overrides Models3DConfig.zoomTransparency and is itself overridden by GLBPlacementConfig.zoomTransparency.

Last updated on