StandardBuildingsState

Typed feature state class needed for generic MapboxMap.setFeatureState and MapboxMap.getFeatureState when working with StandardBuildings in Mapbox Standard Style.

Types

Link copied to clipboard

Builder class to build StandardBuildingsState.

Functions

Link copied to clipboard

Return state as a JSON string.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Override equals method.

Link copied to clipboard
fun getBooleanState(stateName: String): Boolean?

Returns the state value for stateName if it exists and is a Boolean or can be coerced to a Boolean, or NULL otherwise.

Link copied to clipboard
fun getDoubleState(stateName: String): Double?

Returns the state value for stateName if it exists and is a Double or can be coerced to a Double, or NULL otherwise.

Link copied to clipboard
fun getLongState(stateName: String): Long?

Returns the state value for stateName if it exists and is a Long or can be coerced to a Long, or NULL otherwise.

Link copied to clipboard
fun getStringState(stateName: String): String?

Returns the state value for stateName if it exists and is a String or can be coerced to a String, or NULL otherwise.

Link copied to clipboard
open override fun hashCode(): Int

Override hashCode method.

Link copied to clipboard
open override fun toString(): String

Override toString method.

Properties

Link copied to clipboard

When true, the building is highlighted. Use this state to create a temporary effect (e.g. hover).

Link copied to clipboard

When true, the building is selected. Use this state to create a permanent effect. Note: the select state has a higher priority than highlight.