Package com.mapbox.maps.plugin.annotation

Types

Annotation
Link copied to clipboard

Base class for annotations

abstract class Annotation<T : Geometry>(id: Long, jsonObject: JsonObject, geometry: T)
AnnotationManager
Link copied to clipboard

Interface for annotationManager

AnnotationManagerImpl
Link copied to clipboard

Base class for annotation managers

abstract class AnnotationManagerImpl<G : Geometry, T : Annotation<G>, S : AnnotationOptions<G, T>, D : OnAnnotationDragListener<T>, U : OnAnnotationClickListener<T>, V : OnAnnotationLongClickListener<T>, L : Layer>(delegateProvider: MapDelegateProvider, belowLayerId: String?, touchAreaShiftX: Int, touchAreaShiftY: Int) : AnnotationManager<G, T, S, D, U, V>
AnnotationOptions
Link copied to clipboard

Options interface for building annotations

fun fun interface AnnotationOptions<G : Geometry, T : Annotation<G>>
AnnotationPlugin
Link copied to clipboard

Plugin interface for the annotation.

fun fun interface AnnotationPlugin : MapPlugin, MapSizePlugin
AnnotationPluginImpl
Link copied to clipboard

The impl class for AnnotationPlugin

class AnnotationPluginImpl : AnnotationPlugin
AnnotationType
Link copied to clipboard

Enum class for annotation types

enum AnnotationType : Enum<AnnotationType>
ConvertUtils
Link copied to clipboard

Util class for converting properties.

object ConvertUtils
OnAnnotationClickListener
Link copied to clipboard

Generic interface definition of a callback to be invoked when an annotation has been clicked.

fun fun interface OnAnnotationClickListener<T : Annotation<*>>
OnAnnotationDragListener
Link copied to clipboard

Generic interface definition of a callback to be invoked when an annotation is being dragged.

interface OnAnnotationDragListener<out T : Annotation<*>>
OnAnnotationLongClickListener
Link copied to clipboard

Generic fun interface definition of a callback to be invoked when an annotation has been long clicked.

fun fun interface OnAnnotationLongClickListener<T : Annotation<*>>
QueryAnnotationCallback
Link copied to clipboard

Callback for query annotation

fun fun interface QueryAnnotationCallback<T>

Functions

getAnnotationPlugin
Link copied to clipboard

Extension function for MapView to get the Annotation plugin instance.