PolygonAnnotation

class PolygonAnnotation(id: Long, annotationManager: AnnotationManager<Polygon, PolygonAnnotation, *, *, *, *, *>, jsonObject: JsonObject, geometry: Polygon) : Annotation<Polygon>

Class for PolygonAnnotation

Constructors

PolygonAnnotation
Link copied to clipboard
fun PolygonAnnotation(id: Long, annotationManager: AnnotationManager<Polygon, PolygonAnnotation, *, *, *, *, *>, jsonObject: JsonObject, geometry: Polygon)

Types

Companion
Link copied to clipboard
object Companion

Static variables and methods.

Functions

getData
Link copied to clipboard
open fun getData(): JsonElement?
getJsonObjectCopy
Link copied to clipboard
fun getJsonObjectCopy(): JsonObject
getOffsetGeometry
Link copied to clipboard
open override fun getOffsetGeometry(mapCameraManagerDelegate: MapCameraManagerDelegate, moveDistancesObject: MoveDistancesObject): Polygon?

Get the offset geometry for the touch point

getType
Link copied to clipboard
open override fun getType(): AnnotationType

Get the type of this annotation

setData
Link copied to clipboard
open fun setData(jsonElement: JsonElement?)
setUsedDataDrivenProperties
Link copied to clipboard
open override fun setUsedDataDrivenProperties()

Set the used data-driven properties

Properties

featureIdentifier
Link copied to clipboard
val featureIdentifier: String
fillColorInt
Link copied to clipboard
var fillColorInt: Int?

The fillColor property in Int The color of the filled part of this layer. This color can be specified as rgba with an alpha component and the color's opacity will not affect the opacity of the 1px stroke, if it is used.

fillColorString
Link copied to clipboard
var fillColorString: String?

The fillColor property in String

fillOpacity
Link copied to clipboard
var fillOpacity: Double?

The fillOpacity property

fillOutlineColorInt
Link copied to clipboard
var fillOutlineColorInt: Int?

The fillOutlineColor property in Int The outline color of the fill. Matches the value of {@link PropertyFactory#fillColor} if unspecified.

fillOutlineColorString
Link copied to clipboard
var fillOutlineColorString: String?

The fillOutlineColor property in String

fillPattern
Link copied to clipboard
var fillPattern: String?

The fillPattern property

fillSortKey
Link copied to clipboard
var fillSortKey: Double?

The fillSortKey property

geometry
Link copied to clipboard
var geometry: Polygon
id
Link copied to clipboard
val id: Long
isDraggable
Link copied to clipboard
var isDraggable: Boolean
isSelected
Link copied to clipboard
var isSelected: Boolean
points
Link copied to clipboard
var points: List<List<Point>>

A list of lists of Point for the fill, which represents the locations of the fill on the map