AnnotationSourceOptions

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

See also

Constructors

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

Properties

Link copied to clipboard
val buffer: Long? = null

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.

Link copied to clipboard

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

Link copied to clipboard
val lineMetrics: Boolean? = null

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

Link copied to clipboard
val maxZoom: Long? = null

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

Link copied to clipboard
val tolerance: Double? = null

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