mapbox-maps-android icon indicating copy to clipboard operation
mapbox-maps-android copied to clipboard

How to turn on/off 3D building in Style.STANDARD on runtime?

Open mrpham opened this issue 1 year ago • 7 comments

I want to know, how to turn on/off 3D building in Style.STANDARD on runtime? Please help me, many thanks

mrpham avatar Dec 29 '23 07:12 mrpham

Hi, at the moment it's not possible to turn off 3D buildings in the Standard style.

baleboy avatar Jan 04 '24 08:01 baleboy

Hi @mrpham - to add to the above, we are investigating the ability to turn off buildings. I'm curious to know what your use case is for turning off buildings is: is it because you would refer the map to be in 2D? Or are you bringing in custom 3D data?

melanieimfeld avatar Jan 04 '24 18:01 melanieimfeld

Hello @melanieimfeld ,

The 3D buildings obscure the satellite image background, I want the app user to be able to decide whether to enable or disable the buildings layer.

Thanks,

mrpham avatar Jan 06 '24 02:01 mrpham

I also have maps with additional polygon layers. The buildings obscure these polygons now (even if in 2d mode). Maybe it would be more flexible if one could define the transparency for the 3d buildings? Or maybe there is a way to place the polygons above the building layer, so that when they are in 2d they are on top? (Same thing could be said for satellite imagery. In Satellite it might often be more helpful for the buildings to be outlines instead of being opaque, obscuring the imagery?

jensstalder avatar Mar 29 '24 21:03 jensstalder

Was there any workaround on this? it would be nice to have a way to disable the 3d buildings in runtime. I use threebox to put specific 3ds buildings on the map but the default buildings are on the way. just wish for a way to disable and enable the 3d buildings on the standard style at least.

guilhermeluciojardim avatar Apr 10 '24 19:04 guilhermeluciojardim

Hi, I would like to have the same option here as I manage the buildings in 3d with my own datas. Thanks

dje073 avatar Apr 15 '24 09:04 dje073