mapbox / mapbox/mapbox-gl-js

3d-building layer does not have 'height' property and all buildings are flat

Open
#10,981 4 comments 0 reactions 1 assignee View on GitHub

@astojilj is already working on this.

Since Sep 21, 2021.

3d :triangular_ruler: bug :lady_beetle:
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:
![image](https://user-images.githubusercontent.com/51290462/131575832-6b853eb7-6ef5-486f-b490-b1c57cd5d601.png)
My own code:
![image](https://user-images.githubusercontent.com/51290462/131575910-988d782d-18fe-44fe-b2e9-5715a5b7eb97.png)

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:
![image](https://user-images.githubusercontent.com/51290462/131576036-79f8b7e4-5547-4125-ae01-964326a2cb9d.png)

Please help me solve this, I removed my token from the jsbin for obvious reasons.
Best Regards
Philip Magyar

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.