deck.gl icon indicating copy to clipboard operation
deck.gl copied to clipboard

[Feat]add accessor `getElevationBase` for `MVTLayer`

Open lianzhao opened this issue 3 years ago • 0 comments

Target Use Case

mapbox-gl provide fill-extrusion-base and fill-extrusion-height to draw extruded polygon (like buildings).

The MVTLayer does not have getElevationBase accessor like mapbox-gl's fill-extrusion-base. I know that deck.gl support 3D polygons, but Mapbox Vector Tile spec does not support altitude yet.

Proposal

const mvtLayer = new MVTLayer({
    extruded: true,
    getElevation: f => f.properties?.["fill-extrusion-height"] || 0,
    getElevationBase: f => f.properties?.["fill-extrusion-base"] || 0,
})

lianzhao avatar May 22 '22 03:05 lianzhao