MapState

The MapState that can be hoisted to observe map events, query rendered features and control gestures settings.

Constructors

Link copied to clipboard
fun MapState()

Constructor for the MapState.

Types

Link copied to clipboard
object Companion

Public companion object of MapState.

Link copied to clipboard
data class Holder(val savedProperties: Map<String, Parcelable>) : Parcelable

MapState Holder class to be used within Saver.

Functions

Link copied to clipboard
Link copied to clipboard

Gets the state map of a feature from a featureset asynchronously.

Link copied to clipboard
suspend fun pixelForCoordinate(coordinate: Point): ScreenCoordinate

Calculate a screen coordinate that corresponds to a geographical coordinate (i.e., longitude-latitude pair).

Link copied to clipboard

Queries the map for rendered features.

Queries the map for given descriptor and returns typed FeaturesetFeature list in the callback.

Link copied to clipboard

Removes entries from a feature state based on featuresetFeature coming from an interaction callback.

Link copied to clipboard

Reset all the feature states within a style source.

Link copied to clipboard

Sets the state map for given featuresetFeature coming from an interaction callback asynchronously.

Properties

Link copied to clipboard

Gesture configuration allows to control the user touch interaction.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard