MapOverlayPluginImpl

class MapOverlayPluginImpl : MapOverlayPlugin

Impl class for MapOverlayPlugin

Constructors

MapOverlayPluginImpl
Link copied to clipboard
fun MapOverlayPluginImpl()

Functions

cleanup
Link copied to clipboard
open override fun cleanup()

Called when the map is destroyed. Should be used to cleanup plugin resources for that map.

getEdgeInsets
Link copied to clipboard
open override fun getEdgeInsets(): EdgeInsets

Get an EdgeInsets that represent the width and height of overlays

initialize
Link copied to clipboard
open fun initialize()
onDelegateProvider
Link copied to clipboard
open override fun onDelegateProvider(delegateProvider: MapDelegateProvider)

Provides all map delegate instances.

onSizeChanged
Link copied to clipboard
open override fun onSizeChanged(width: Int, height: Int)

Invoked when MapView's width and height have changed.

reframe
Link copied to clipboard
open override fun reframe(onReframeFinished: OnReframeFinished?)

Reframe MapView to a certain zoom and position to make sure every coordinate will be shown on the MapView and not covered by registered MapOverlays. If no onAnimateReframe is provided, MapView will jump to the new CameraOptions directly; if onAnimateReframe is provided, the new CameraOptions will be return and users can define their own animation to move the camera.

registerMapOverlayCoordinatesProvider
Link copied to clipboard
open override fun registerMapOverlayCoordinatesProvider(provider: MapOverlayCoordinatesProvider)

To register a MapOverlayCoordinatesProvider instance to the Container

registerOverlay
Link copied to clipboard
open override fun registerOverlay(overlay: View)

Register an MapOverlay instance.

registerOverlays
Link copied to clipboard
open override fun registerOverlays(overlays: List<View>)

Register views as overlays

setDisplayingAreaMargins
Link copied to clipboard
open override fun setDisplayingAreaMargins(marginTop: Int, marginLeft: Int, marginBottom: Int, marginRight: Int)

Set the margins for the area that displaying import POIs without covered. These margins can let the POIs near the border not by cut or covered.

unregisterMapOverlayCoordinatesProvider
Link copied to clipboard
open override fun unregisterMapOverlayCoordinatesProvider()

Unregister the MapOverlayCoordinatesProvider.

unregisterOverlay
Link copied to clipboard
open override fun unregisterOverlay(overlay: View)

Unregister an MapOverlay instance.

unregisterOverlays
Link copied to clipboard
open override fun unregisterOverlays(overlays: List<View>)

Unregister views.