MapOverlayPlugin

Interface for MapOverlay Container that manage MapOverlays.

interface MapOverlayPlugin : MapSizePlugin, MapPlugin

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

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

Called when the plugin is first added to the map.

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 OnReframeFinished object is provided, MapView will jump to the new CameraOptions directly; if OnReframeFinished object is provided, the new CameraOptions will be return and users can define their own animation to move the camera.

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

To register a MapOverlayCoordinatesProvider instance to the Container

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

Register an view as overlay.

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

Register views as overlays

abstract 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.

abstract 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
abstract fun unregisterMapOverlayCoordinatesProvider()
unregisterOverlay
Link copied to clipboard

Unregister an view.

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

Unregister views.

abstract fun unregisterOverlays(overlays: List<View>)

Inheritors

MapOverlayPluginImpl
Link copied to clipboard