Skip to content

ui/map/shapes/extrusion

Interfaces

ExtrusionBounds

Defined in: ui/map/shapes/extrusion.ts:4

Vertical extent of an extruded polygon, in metres above ground.

Properties

base
base: number;

Defined in: ui/map/shapes/extrusion.ts:5

top
top: number;

Defined in: ui/map/shapes/extrusion.ts:6

Functions

extrusionBounds()

function extrusionBounds(poly): ExtrusionBounds | null;

Defined in: ui/map/shapes/extrusion.ts:18

Vertical extent for a polygon's 3D extrusion, or null when the shape has no renderable extent and must stay flat. The backend only forwards finite altitude bounds (BlueSky's +/-1e9 "unbounded" sentinels are stripped), so a missing top altitude means the shape is a plain 2D area.

A missing bottom defaults to ground level, and the base is clamped into [0, top] so malformed data can never produce an inside-out extrusion.

Parameters

poly

Pick\<PolygonShape, "topAltitude" | "bottomAltitude">

Returns

ExtrusionBounds | null