Builder
class Builder
Content copied to clipboard
Constructors
Functions
allow Overlap
Link copied to clipboard
open fun allowOverlap(@Nullable allowOverlap: Boolean): ViewAnnotationOptions.Builder
Content copied to clipboard
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
Content copied to clipboard
Anchor describing where the view annotation will be located relatively to given geometry.
associated Feature Id
Link copied to clipboard
open fun associatedFeatureId(@Nullable associatedFeatureId: String): ViewAnnotationOptions.Builder
Content copied to clipboard
Optional style symbol id connected to given view annotation.
build
Link copied to clipboard
geometry
Link copied to clipboard
open fun geometry(@Nullable geometry: Geometry): ViewAnnotationOptions.Builder
Content copied to clipboard
Geometry the view annotation is bound to.
height
Link copied to clipboard
open fun height(@Nullable height: Integer): ViewAnnotationOptions.Builder
Content copied to clipboard
View annotation height in `platform pixels`.
offset X
Link copied to clipboard
open fun offsetX(@Nullable offsetX: Integer): ViewAnnotationOptions.Builder
Content copied to clipboard
Extra X offset in `platform pixels`.
offset Y
Link copied to clipboard
open fun offsetY(@Nullable offsetY: Integer): ViewAnnotationOptions.Builder
Content copied to clipboard
Extra Y offset in `platform pixels`.
selected
Link copied to clipboard
open fun selected(@Nullable selected: Boolean): ViewAnnotationOptions.Builder
Content copied to clipboard
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
Content copied to clipboard
Specifies if this view annotation is visible or not.
width
Link copied to clipboard
View annotation width in `platform pixels`.