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

Show/Hidde 3d objects in standard map

Open daviidmart opened this issue 1 year ago • 3 comments

How can I show and hide 3d objects on the map like in mapboxgl?

setConfigProperty('basemap', 'show3dObjects', false)

daviidmart avatar Oct 22 '24 00:10 daviidmart

I have a related question, I'd like to turn off only certain types of 3D objects (specifically airplane objects at an airport)

grantleemw avatar Jan 03 '25 01:01 grantleemw

Hi @daviidmart, for the Standard style you can hide 3d objects by setting show3dObjects to false:

mapboxMap.style.setStyleImportConfigProperty("basemap", "show3dObjects", false);

You can find more configuration properties for the Mapbox Standard style here: https://docs.mapbox.com/mapbox-gl-js/guides/styles/#mapbox-standard-1

evil159 avatar Jan 27 '25 13:01 evil159

@grantleemw Currently there is no configuration to remove only a specific types of 3D objects, however you can use ClipLayer to hide some specific 3D objects.

evil159 avatar Jan 27 '25 13:01 evil159