spatial-monorepo / core/src / buildWallHeightExpr
Function: buildWallHeightExpr()
buildWallHeightExpr(
maxHeightM?):unknown[]
Defined in: packages/core/src/layers/wall-paint.ts:70
Builds the shared zoom-interpolated fill-extrusion-height expression: grows from 0 at WALL_GROW_IN_ZOOM_MIN to the feature's wall_height at WALL_GROW_IN_ZOOM_MAX, optionally capped to maxHeightM (used by RenderOptions.walls.maxHeightCm — see render-options.ts).
Shape: ['interpolate', ['linear'], ['zoom'], 17, 0, 19, target] where target is ['get', 'wall_height'], or ['min', ['get', 'wall_height'], maxHeightM] when a cap is supplied.
Parameters
maxHeightM?
number
Returns
unknown[]
