PolygonOptions

class PolygonOptions : Parcelable


A representation of a polygon object in a 3D map.

Summary

Public constructors

Default constructor for PolygonOptions.

PolygonOptions(
    id: String!,
    path: (Mutable)List<LatLngAltitude!>!,
    innerPaths: (Mutable)List<Hole!>!,
    @AltitudeMode altitudeMode: Int,
    fillColor: @ColorInt Int,
    strokeColor: @ColorInt Int,
    strokeWidth: Double,
    geodesic: Boolean,
    extruded: Boolean,
    drawsOccludedSegments: Boolean,
    zIndex: Int
)

Constructor for PolygonOptions with parameters for required fields.

Public functions

Unit
writeToParcel(out: Parcel!, flags: Int)

Extension functions

Unit

Validates a specified PolygonOptions object.

Inherited functions

From android.os.Parcelable
abstract Int

Constants

CREATOR

const val CREATORParcelable.Creator<PolygonOptions!>!

Public constructors

PolygonOptions

PolygonOptions()

Default constructor for PolygonOptions.

PolygonOptions

PolygonOptions(
    id: String!,
    path: (Mutable)List<LatLngAltitude!>!,
    innerPaths: (Mutable)List<Hole!>!,
    @AltitudeMode altitudeMode: Int,
    fillColor: @ColorInt Int,
    strokeColor: @ColorInt Int,
    strokeWidth: Double,
    geodesic: Boolean,
    extruded: Boolean,
    drawsOccludedSegments: Boolean,
    zIndex: Int
)

Constructor for PolygonOptions with parameters for required fields.

Parameters
id: String!

The unique identifier of the polygon.

path: (Mutable)List<LatLngAltitude!>!

The outer coordinates of the polygon.

innerPaths: (Mutable)List<Hole!>!

The inner coordinates of the polygon.

@AltitudeMode altitudeMode: Int

The altitude mode of the polygon.

fillColor: @ColorInt Int

The fill color of the polygon.

strokeColor: @ColorInt Int

The stroke color of the polygon.

strokeWidth: Double

The stroke width of the polygon.

geodesic: Boolean

Whether the polygon is geodesic.

extruded: Boolean

Whether the polygon is extruded.

drawsOccludedSegments: Boolean

Whether the polygon draws occluded segments.

zIndex: Int

The z-index of the polygon.

Public functions

writeToParcel

fun writeToParcel(out: Parcel!, flags: Int): Unit

Public properties

altitudeMode

var altitudeModeInt

drawsOccludedSegments

var drawsOccludedSegmentsBoolean

extruded

var extrudedBoolean

fillColor

var fillColor: @ColorInt Int

geodesic

var geodesicBoolean

id

var idString!

innerPaths

var innerPaths: (Mutable)List<Hole!>!

path

var path: (Mutable)List<LatLngAltitude!>!

strokeColor

var strokeColor: @ColorInt Int

strokeWidth

var strokeWidthDouble

zIndex

var zIndexInt

Extension functions

validate

fun PolygonOptions.validate(): Unit

Validates a specified PolygonOptions object.