Map Events
class MapEvents(val onMapLoaded: MapLoadedCallback? = null, val onMapIdle: MapIdleCallback? = null, val onMapLoadingError: MapLoadingErrorCallback? = null, val onStyleLoaded: StyleLoadedCallback? = null, val onStyleDataLoaded: StyleDataLoadedCallback? = null, val onSourceDataLoaded: SourceDataLoadedCallback? = null, val onSourceAdded: SourceAddedCallback? = null, val onSourceRemoved: SourceRemovedCallback? = null, val onStyleImageMissing: StyleImageMissingCallback? = null, val onStyleImageRemoveUnused: StyleImageRemoveUnusedCallback? = null, val onCameraChanged: CameraChangedCallback? = null, val onRenderFrameStarted: RenderFrameStartedCallback? = null, val onRenderFrameFinished: RenderFrameFinishedCallback? = null, val onResourceRequest: ResourceRequestCallback? = null)
Entry point for adding a Mapbox Map events to the Jetpack Compose UI.
Parameters
on Map Loaded
Callback for MapLoaded
event.
on Map Idle
Callback for MapIdle
event.
on Map Loading Error
Callback for MapLoadingError
event.
on Style Loaded
Callback for StyleLoaded
event.
on Style Data Loaded
Callback for StyleDataLoaded
event.
on Source Data Loaded
Callback for SourceDataLoaded
event.
on Source Added
Callback for SourceAdded
event.
on Source Removed
Callback for SourceRemoved
event.
on Style Image Missing
Callback for StyleImageMissing
event.
on Style Image Remove Unused
Callback for StyleImageRemoveUnused
event.
on Camera Changed
Callback for CameraChanged
event.
on Render Frame Started
Callback for RenderFrameStarted
event.
on Render Frame Finished
Callback for RenderFrameFinished
event.
on Resource Request
Callback for ResourceRequest
event.
Constructors
Link copied to clipboard
fun MapEvents(onMapLoaded: MapLoadedCallback? = null, onMapIdle: MapIdleCallback? = null, onMapLoadingError: MapLoadingErrorCallback? = null, onStyleLoaded: StyleLoadedCallback? = null, onStyleDataLoaded: StyleDataLoadedCallback? = null, onSourceDataLoaded: SourceDataLoadedCallback? = null, onSourceAdded: SourceAddedCallback? = null, onSourceRemoved: SourceRemovedCallback? = null, onStyleImageMissing: StyleImageMissingCallback? = null, onStyleImageRemoveUnused: StyleImageRemoveUnusedCallback? = null, onCameraChanged: CameraChangedCallback? = null, onRenderFrameStarted: RenderFrameStartedCallback? = null, onRenderFrameFinished: RenderFrameFinishedCallback? = null, onResourceRequest: ResourceRequestCallback? = null)