PolygonAnnotation

Class for PolygonAnnotation

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

Constructors

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

Types

Companion
Link copied to clipboard

Static variables and methods.

object Companion

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getData
Link copied to clipboard
open override fun getData(): JsonElement?
getOffsetGeometry
Link copied to clipboard

Get the offset geometry for the touch point

open override fun getOffsetGeometry(mapCameraManagerDelegate: MapCameraManagerDelegate, moveDistancesObject: MoveDistancesObject, touchAreaShiftX: Int, touchAreaShiftY: Int): Polygon?
getType
Link copied to clipboard

Get the type of this annotation

open override fun getType(): AnnotationType
hashCode
Link copied to clipboard
open override fun hashCode(): Int
setData
Link copied to clipboard
open override fun setData(jsonElement: JsonElement?)
setUsedDataDrivenProperties
Link copied to clipboard

Set the used data-driven properties

open override fun setUsedDataDrivenProperties()
toString
Link copied to clipboard
open override fun toString(): String

Properties

fillColorInt
Link copied to clipboard

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.

var fillColorInt: Int?
fillColorString
Link copied to clipboard

The fillColor property in String

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.

var fillColorString: String?
fillOpacity
Link copied to clipboard

The fillOpacity property

The opacity of the entire fill layer. In contrast to the {@link PropertyFactory#fillColor}, this value will also affect the 1px stroke around the fill, if the stroke is used.

var fillOpacity: Double?
fillOutlineColorInt
Link copied to clipboard

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

var fillOutlineColorInt: Int?
fillOutlineColorString
Link copied to clipboard

The fillOutlineColor property in String

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

var fillOutlineColorString: String?
fillPattern
Link copied to clipboard

The fillPattern property

Name of image in sprite to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.

var fillPattern: String?
fillSortKey
Link copied to clipboard

The fillSortKey property

Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.

var fillSortKey: Double?
geometry
Link copied to clipboard
override var geometry: Polygon
id
Link copied to clipboard
override val id: Long
isDraggable
Link copied to clipboard
override var isDraggable: Boolean
jsonObject
Link copied to clipboard
override val jsonObject: JsonObject
points
Link copied to clipboard

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

To update the polygonAnnotation on the map use {@link PolygonAnnotationManager#update(Annotation)}.

var points: List<List<Point>>