Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat]add accessor getElevationBase for MVTLayer #6941

Open
lianzhao opened this issue May 22, 2022 · 0 comments
Open

[Feat]add accessor getElevationBase for MVTLayer #6941

lianzhao opened this issue May 22, 2022 · 0 comments
Labels

Comments

@lianzhao
Copy link

lianzhao commented May 22, 2022

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,
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant