Skip to Content
APIConfigurationInterface: RouteTransparencyConfig

Interface: RouteTransparencyConfig

Route-based transparency for a GLB model: the opacity applied while a visible route segment crosses the model’s footprint on the currently displayed floor. This lets a route drawn inside a building reveal the floor plan underneath instead of being hidden by the opaque model.

Deliberately separate from ZoomTransparencyConfig: route transparency has no zoom threshold, so it carries only the opacity value. Use the same value as the zoom config to match that look, or a different one to diverge.

Presence of this config (at any level) is what activates route transparency for a model. When omitted at all levels, a route crossing the model has no effect on its opacity.

Properties

opacity

opacity: number

Opacity applied while a route crosses the model. 0 = invisible, 1 = opaque. 95% transparent = 0.05.

Last updated on