MapViewConfig

data class MapViewConfig(val switchLevelsAutomaticallyOnUserMovements: Boolean = true, val staleStateTimeout: Duration = 5.seconds, internalConfig: MapViewConfig.InternalConfig = InternalConfig())

Configuration for a com.getwemap.sdk.map.WemapMapView — immutable, rendering-only, and handed to the view together with its session in the single configure(session, config) call. Session-wide settings (environment, itinerary recalculation, projections, etc.) live on the com.getwemap.sdk.core.configs.SessionConfig passed to the session, not here. Every field has a default.

Constructors

Link copied to clipboard
constructor(switchLevelsAutomaticallyOnUserMovements: Boolean = true, staleStateTimeout: Duration = 5.seconds, internalConfig: MapViewConfig.InternalConfig = InternalConfig())

Properties

Link copied to clipboard

The duration after which the user location indicator is considered stale.

Link copied to clipboard

Determines whether automatic level switching will be performed depending on the user's movements.