Builder
class Builder
Constructors
Functions
Link copied to clipboard
If true, the annotation will be visible even if it collides with other previously drawn annotations.
Link copied to clipboard
open fun allowOverlapWithPuck(@Nullable allowOverlapWithPuck: Boolean): ViewAnnotationOptions.Builder
If true, the annotation will be visible even if it collides with the puck.
Link copied to clipboard
If true, position annotation on buildings' (both fill extrusions and models) rooftops.
Link copied to clipboard
open fun annotatedFeature(@Nullable annotatedFeature: AnnotatedFeature): ViewAnnotationOptions.Builder
Associates a view annotation with the geometry provided by the `AnnotatedFeature`.
Link copied to clipboard
Link copied to clipboard
View annotation height in `platform pixels`.
Link copied to clipboard
If true, the annotation will be visible even if it is outside the bound that defined by the camera padding.
Link copied to clipboard
Specifies if this view annotation is selected meaning it should be placed on top of others.
Link copied to clipboard
open fun variableAnchors(@Nullable variableAnchors: List<ViewAnnotationAnchorConfig>): ViewAnnotationOptions.Builder
Provide anchor choices for annotation placement.
Link copied to clipboard
Specifies if this view annotation is visible or not.
Link copied to clipboard
View annotation width in `platform pixels`.
Extensions
Link copied to clipboard
inline fun ViewAnnotationOptions.Builder.annotatedLayerFeature(layerId: String, block: AnnotatedLayerFeature.Builder.() -> Unit = {}): ViewAnnotationOptions.Builder
DSL function to set AnnotatedLayerFeature to ViewAnnotationOptions.Builder.annotatedFeature.
Link copied to clipboard
inline fun ViewAnnotationOptions.Builder.annotationAnchor(block: ViewAnnotationAnchorConfig.Builder.() -> Unit): ViewAnnotationOptions.Builder
DSL function to set single ViewAnnotationAnchorConfig to ViewAnnotationOptions.Builder.variableAnchors.
Link copied to clipboard
fun ViewAnnotationOptions.Builder.annotationAnchors(vararg blocks: ViewAnnotationAnchorConfig.Builder.() -> Unit): ViewAnnotationOptions.Builder
DSL function to set multiple ViewAnnotationAnchorConfig's to ViewAnnotationOptions.Builder.variableAnchors. Anchors will be applied in the order they are specified.
Link copied to clipboard
DSL function to set Geometry to ViewAnnotationOptions.Builder.annotatedFeature.