Builder

class Builder

Constructors

Builder
Link copied to clipboard
open fun Builder()

Functions

allowOverlap
Link copied to clipboard
open fun allowOverlap(@Nullable allowOverlap: Boolean): ViewAnnotationOptions.Builder
If true, the annotation will be visible even if it collides with other previously drawn annotations.
anchor
Link copied to clipboard
open fun anchor(@Nullable anchor: ViewAnnotationAnchor): ViewAnnotationOptions.Builder
Anchor describing where the view annotation will be located relatively to given geometry.
associatedFeatureId
Link copied to clipboard
open fun associatedFeatureId(@Nullable associatedFeatureId: String): ViewAnnotationOptions.Builder
Optional style symbol id connected to given view annotation.
build
Link copied to clipboard
open fun build(): ViewAnnotationOptions
geometry
Link copied to clipboard
open fun geometry(@Nullable geometry: Geometry): ViewAnnotationOptions.Builder
Geometry the view annotation is bound to.
height
Link copied to clipboard
open fun height(@Nullable height: Integer): ViewAnnotationOptions.Builder
View annotation height in `platform pixels`.
offsetX
Link copied to clipboard
open fun offsetX(@Nullable offsetX: Integer): ViewAnnotationOptions.Builder
Extra X offset in `platform pixels`.
offsetY
Link copied to clipboard
open fun offsetY(@Nullable offsetY: Integer): ViewAnnotationOptions.Builder
Extra Y offset in `platform pixels`.
selected
Link copied to clipboard
open fun selected(@Nullable selected: Boolean): ViewAnnotationOptions.Builder
Specifies if this view annotation is selected meaning it should be placed on top of others.
visible
Link copied to clipboard
open fun visible(@Nullable visible: Boolean): ViewAnnotationOptions.Builder
Specifies if this view annotation is visible or not.
width
Link copied to clipboard
open fun width(@Nullable width: Integer): ViewAnnotationOptions.Builder
View annotation width in `platform pixels`.