MapboxBuildingView

class MapboxBuildingView

Mapbox default view that adds/updates/removes building layer and building highlight for a specific feature geometry and applies appropriate properties to the building layer on top of MapboxMap using MapboxBuildingHighlightOptions

Each Layer added to the map by this class is a persistent layer - it will survive style changes. This means that if the data has not changed, it does not have to be manually redrawn after a style change. See Style.addPersistentStyleLayer.

Constructors

MapboxBuildingView
Link copied to clipboard
fun MapboxBuildingView()

Functions

clear
Link copied to clipboard
fun clear(style: Style)
Remove the building layer and source.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
highlightBuilding
Link copied to clipboard
fun highlightBuilding(style: Style, buildings: List<QueriedFeature>, options: MapboxBuildingHighlightOptions = MapboxBuildingHighlightOptions.Builder().build())
Highlight all buildings obtained by querying the MapboxMap.
removeBuildingHighlight
Link copied to clipboard
fun removeBuildingHighlight(style: Style, options: MapboxBuildingHighlightOptions = MapboxBuildingHighlightOptions.Builder().build())
Remove building highlight from an already highlighted building
toString
Link copied to clipboard
open fun toString(): String