MapOverlayPluginImpl

Impl class for MapOverlayPlugin

class MapOverlayPluginImpl : MapOverlayPlugin

Constructors

MapOverlayPluginImpl
Link copied to clipboard
fun MapOverlayPluginImpl()

Functions

cleanup
Link copied to clipboard

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

open override fun cleanup()
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getEdgeInsets
Link copied to clipboard

Get an EdgeInsets that represent the width and height of overlays

open override fun getEdgeInsets(): EdgeInsets
hashCode
Link copied to clipboard
open override fun hashCode(): Int
initialize
Link copied to clipboard
open override fun initialize()
onDelegateProvider
Link copied to clipboard

Provides all map delegate instances.

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

Invoked when MapView's width and height have changed.

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

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.

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

To register a MapOverlayCoordinatesProvider instance to the Container

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

Register an MapOverlay instance.

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

Register views as overlays

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

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.

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

Unregister the MapOverlayCoordinatesProvider.

open override fun unregisterMapOverlayCoordinatesProvider()
unregisterOverlay
Link copied to clipboard

Unregister an MapOverlay instance.

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

Unregister views.

open override fun unregisterOverlays(overlays: List<View>)