Polygon

Deprecated

Polygon is a geometry annotation that's a closed loop of coordinates.

Deprecated

As of 7.0.0, use MapLibre Annotation Plugin instead

Properties

Link copied to clipboard
open var alpha: Float
Link copied to clipboard
open var fillColor: Int
Link copied to clipboard
@get:NonNull
open val holes: List<List<LatLng>>
Link copied to clipboard
open var id: Long
The annotation id Internal C++ id is stored as unsigned int.
Link copied to clipboard
@get:NonNull
open var points: List<LatLng>
Link copied to clipboard
open var strokeColor: Int

Functions

Link copied to clipboard
open fun addPoint(point: LatLng)
Add a point to the polyline.
Link copied to clipboard
abstract fun compareTo(p: T): Int

open fun compareTo(@NonNull annotation: Annotation): Int
Compares this Annotation object with another Annotation.
Link copied to clipboard
open fun equals(@Nullable object: Any): Boolean
Checks if this Annotation object is equal to another Annotation.
Link copied to clipboard
open fun hashCode(): Int
Gives an integer which can be used as the bucket number for storing elements of the set/map.
Link copied to clipboard
open fun remove()
Do not use this method, used internally by the SDK.
Link copied to clipboard
open fun setHoles(@NonNull holes: List<out List<LatLng>>)
Sets the holes of this polygon.
Link copied to clipboard
open fun setMapLibreMap(maplibreMap: MapLibreMap)
Do not use this method, used internally by the SDK.
Link copied to clipboard
open fun setMapView(mapView: MapView)
Do not use this method, used internally by the SDK.