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
suspend fun <FS : FeatureState> getFeatureState(featuresetHolder: FeaturesetHolder<FS>, featureId: String, featureNamespace: String? = null): FS

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 given featuresetHolder and returns typed InteractiveFeature.

Link copied to clipboard

Queries the map for rendered features.

Link copied to clipboard
suspend fun removeFeatureState(interactiveFeature: InteractiveFeature<*>, stateKey: String? = null): Expected<String, None>

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

Link copied to clipboard

Reset all the feature states within a style source.

Link copied to clipboard
suspend fun <IF : InteractiveFeature<FS>, FS : FeatureState> setFeatureState(interactiveFeature: IF, state: FS): Expected<String, None>

Sets the state map for given interactiveFeature 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