highlightBuilding

fun highlightBuilding(style: Style, buildings: List<QueriedFeature>, options: MapboxBuildingHighlightOptions = MapboxBuildingHighlightOptions.Builder().build())

Highlight all buildings obtained by querying the MapboxMap. If the list of buildings is empty, none of them are highlighted.

Parameters

style

a valid Style instance

buildings

list of buildings to highlight

options

defines additional options to apply to building layer