StandardPoiState

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

Types

Link copied to clipboard

Builder class to build StandardPoiState.

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, hides the icon and text. Use this state when displaying a custom annotation on top.