1
votes

I'm trying to adopt this Display buildings in 3D example, but I found out that in my city (Minsk, Belarus) some buildings look flat like this:

flat building

The coordinates of this particular building are 27.552516, 53.897726 (lon, lat).

I checked out the attributes os this building in OSM and didn't find any special:

OSM attributes

There is only a number of floors as data about height, but it's the same for the rest of buildings which appear volumetric.

I haven't changed the code yet so I don't leave it here coz it's in the Mapbox example above. Could someone tells me how to fix that problem?

1

1 Answers

0
votes

It looks like for some reason the extrude property for this building is equal to false. Try changing the filter for the layer with the extrude of buildings:

'filter': ['==', 'extrude', 'true']

// =>

'filter': ['>', 'height', 0]