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

fillColorInt
Link copied to clipboard
var fillColorInt: Int?
The fillColor property in Int The color of the filled part of this layer.
fillColorString
Link copied to clipboard
var fillColorString: String?
The fillColor property in StringThe color of the filled part of this layer.
fillOpacity
Link copied to clipboard
var fillOpacity: Double?
The fillOpacity propertyThe opacity of the entire fill layer.
fillOutlineColorInt
Link copied to clipboard
var fillOutlineColorInt: Int?
The fillOutlineColor property in Int The outline color of the fill.
fillOutlineColorString
Link copied to clipboard
var fillOutlineColorString: String?
The fillOutlineColor property in StringThe outline color of the fill.
fillPattern
Link copied to clipboard
var fillPattern: String?
The fillPattern propertyName of image in sprite to use for drawing image fills.
fillSortKey
Link copied to clipboard
var fillSortKey: Double?
The fillSortKey propertySorts features in ascending order based on this value.
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 mapTo update the polygonAnnotation on the map use {@link PolygonAnnotationManager#update(Annotation)}.