3d-building layer does not have 'height' property and all buildings are flat
@astojilj is already working on this.
Since Sep 21, 2021.
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
**mapbox-gl-js version**: 2.4.1
**browser**: Brave (Chromium)
Hello! I am trying to get 3d buildings in mapbox, but they are just flat, I added code to get the feature when I click on them and they have no height property, which is really weird. I made a function in both the jsbin and my own code, this is the result of the jsbin:

My own code:

And I add the layer the EXACTLY the same was as shown in here:
https://jsbin.com/yobihunoqi/1/edit?html,output
Although I am using typescript with angular, this recently became a problem that the buildings are just flat:

Please help me solve this, I removed my token from the jsbin for obvious reasons.
Best Regards
Philip Magyar
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.