AnnotationSourceOptions

Configure class for composing GeoJsonSource objects that included in Annotation

data class AnnotationSourceOptions @JvmOverloads() constructor(maxZoom: Long?, buffer: Long?, lineMetrics: Boolean?, tolerance: Double?, clusterOptions: ClusterOptions?)

See also

Constructors

AnnotationSourceOptions
Link copied to clipboard
fun AnnotationSourceOptions(maxZoom: Long?, buffer: Long?, lineMetrics: Boolean?, tolerance: Double?, clusterOptions: ClusterOptions?)

Functions

component1
Link copied to clipboard
operator fun component1(): Long?
component2
Link copied to clipboard
operator fun component2(): Long?
component3
Link copied to clipboard
operator fun component3(): Boolean?
component4
Link copied to clipboard
operator fun component4(): Double?
component5
Link copied to clipboard
operator fun component5(): ClusterOptions?
copy
Link copied to clipboard
fun copy(maxZoom: Long?, buffer: Long?, lineMetrics: Boolean?, tolerance: Double?, clusterOptions: ClusterOptions?): AnnotationSourceOptions
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

buffer
Link copied to clipboard

Size of the tile buffer on each side. A value of 0 produces no buffer. A value of 512 produces a buffer as wide as the tile itself. Larger values produce fewer rendering artifacts near tile edges and slower performance.

val buffer: Long?
clusterOptions
Link copied to clipboard

Options to show and configure symbol clustering with using SymbolManager.

val clusterOptions: ClusterOptions?
lineMetrics
Link copied to clipboard

Whether to calculate line distance metrics. This is required for line layers that specify line-gradient values.

val lineMetrics: Boolean?
maxZoom
Link copied to clipboard

Maximum zoom level at which to create vector tiles (higher means greater detail at high zoom levels).

val maxZoom: Long?
tolerance
Link copied to clipboard

Douglas-Peucker simplification tolerance (higher means simpler geometries and faster performance).

val tolerance: Double?