PolygonOptions

Deprecated

As of 7.0.0, use MapLibre Annotation Plugin instead

Builder for composing Polygon objects.

Constructors

Link copied to clipboard
constructor()
Defines options for a polygon.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val polygon: Polygon

Functions

Link copied to clipboard
open fun add(point: LatLng): PolygonOptions
Adds a vertex to the outline of the polygon being built.
open fun add(points: Array<LatLng>): PolygonOptions
Adds vertices to the outline of the polygon being built.
Link copied to clipboard
Adds vertices to the outline of the polygon being built.
Link copied to clipboard
Adds holes to the outline of the polygon being built.
Link copied to clipboard
Adds a hole to the outline of the polygon being built.
Adds holes to the outline of the polygon being built.
Link copied to clipboard
open fun alpha(alpha: Float): PolygonOptions
Set the alpha value of the polyline.
Link copied to clipboard
open fun describeContents(): Int
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Link copied to clipboard
open fun equals(@Nullable o: Any): Boolean
Compares this PolygonOptions object with another PolygonOptions and determines if their color, alpha, stroke color, and vertices match.
Link copied to clipboard
Specifies the polygon's fill color, as 32-bit ARGB.
Link copied to clipboard
open fun getAlpha(): Float
Gets the alpha set for this PolygonOptions object.
Link copied to clipboard
open fun getFillColor(): Int
Gets the fill color set for this PolygonOptions object.
Link copied to clipboard
Gets the holes set for this PolygonOptions object.
Link copied to clipboard
Gets the points set for this PolygonOptions object.
Link copied to clipboard
open fun getStrokeColor(): Int
Gets the stroke color set for this PolygonOptions object.
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
Specifies the polygon's stroke color, as 32-bit ARGB.
Link copied to clipboard
open fun writeToParcel(out: Parcel, flags: Int)
Flatten this object in to a Parcel.