Package-level declarations

Types

Link copied to clipboard
abstract class Annotation<T : Geometry>(val id: String, jsonObject: JsonObject, var geometry: T)

Base class for annotations

Link copied to clipboard
data class AnnotationConfig @JvmOverloads constructor(val belowLayerId: String? = null, val layerId: String? = null, val sourceId: String? = null, val annotationSourceOptions: AnnotationSourceOptions? = null)

Config class for annotation plugin to get the annotation manager

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

Options interface for building annotations

Link copied to clipboard

Plugin interface for the annotation.

Link copied to clipboard
data class AnnotationSourceOptions @JvmOverloads constructor(val maxZoom: Long? = null, val buffer: Long? = null, val lineMetrics: Boolean? = null, val tolerance: Double? = null, val clusterOptions: ClusterOptions? = null)

Configure class for composing GeoJsonSource objects that included in Annotation

Link copied to clipboard

Enum class for annotation types

Link copied to clipboard
data class ClusterOptions @JvmOverloads constructor(val cluster: Boolean = true, val clusterRadius: Long = 50, val circleRadiusExpression: Value? = null, val circleRadius: Double = 18.0, val textColorExpression: Value? = null, val textColor: Int = Color.WHITE, val textSizeExpression: Value? = null, val textSize: Double = 12.0, val textField: Value? = null, val clusterMaxZoom: Long = 14, val colorLevels: List<Pair<Int, Int>> = listOf(Pair(0, Color.BLUE)), val clusterProperties: HashMap<String, Any>? = null)

Options to show and configure symbol clustering with using PointAnnotationManager or CircleAnnotationManager.

Link copied to clipboard

Util class for converting properties.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Generic interface definition of a callback to be invoked when an annotation has been selected or deselected.

Link copied to clipboard

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

Link copied to clipboard
fun interface QueryAnnotationCallback<T>

Callback for query annotation

Properties

Link copied to clipboard

Extension val for MapView to get the Annotation plugin instance.