Enabling and Disabling features on the map
With the Release of 4.5.0 on mapbox-v11 it is possible to hide certain map features on the map
Last updated
Was this helpful?
With the Release of 4.5.0 on mapbox-v11 it is possible to hide certain map features on the map
You can toggle the rendered features on the map through MapControl, by using hiddenFeatures
This code example removes all 3D features on the map.
mapControl.hiddenFeatures = listOf(MPFeatureType.EXTRUDED_BUILDINGS,
MPFeatureType.EXTRUSION_3D,
MPFeatureType.WALLS_3D,
MPFeatureType.MODEL_3D)All features that can be enabled or disabled can be found on MPFeatureType
Clearing the hiddenFeatures can be done by setting it to null.
mapControl.hiddenFeatures = nullLast updated
Was this helpful?
Was this helpful?