mapbox-gl-js version: 2.4.1
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:
May have found cause: I think this issue has to do with the styles: when I use 'mapbox://styles/mapbox/streets-v11' I get no building heights but I get the building id's. When I use an older version of streets; 'mapbox://styles/mapbox/streets-v10' or below, I get the buildings height but no id, just a 1: When use an older version, you can see the id is 1.
EDIT: I have no idea what just happened here: https://user-images.githubusercontent.com/51290462/131664514-7929481e-9540-4c43-88ea-b6f6d130f958.mp4 look at the video on the github issue linked at the top