PolylineOptions

class PolylineOptions : Parcelable


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

Summary

Public constructors

Default constructor for PolylineOptions.

PolylineOptions(
    id: String!,
    path: (Mutable)List<LatLngAltitude!>!,
    @AltitudeMode altitudeMode: Int,
    strokeColor: @ColorInt Int,
    strokeWidth: Double,
    outerColor: @ColorInt Int,
    outerWidth: Double,
    geodesic: Boolean,
    extruded: Boolean,
    drawsOccludedSegments: Boolean,
    zIndex: Int
)

Constructor for PolylineOptions with parameters for required fields.

Public functions

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

Extension functions

Unit

Validates a specified PolylineOptions object.

Inherited functions

From android.os.Parcelable
abstract Int

Constants

CREATOR

const val CREATORParcelable.Creator<PolylineOptions!>!

Public constructors

PolylineOptions

PolylineOptions()

Default constructor for PolylineOptions.

PolylineOptions

PolylineOptions(
    id: String!,
    path: (Mutable)List<LatLngAltitude!>!,
    @AltitudeMode altitudeMode: Int,
    strokeColor: @ColorInt Int,
    strokeWidth: Double,
    outerColor: @ColorInt Int,
    outerWidth: Double,
    geodesic: Boolean,
    extruded: Boolean,
    drawsOccludedSegments: Boolean,
    zIndex: Int
)

Constructor for PolylineOptions with parameters for required fields.

Parameters
id: String!

The unique identifier of the polyline.

path: (Mutable)List<LatLngAltitude!>!

The coordinates of the polyline.

@AltitudeMode altitudeMode: Int

The altitude mode of the polyline.

strokeColor: @ColorInt Int

The stroke color of the polyline.

strokeWidth: Double

The stroke width of the polyline.

outerColor: @ColorInt Int

The outer color of the polyline.

outerWidth: Double

The outer width of the polyline.

geodesic: Boolean

Whether the polyline is geodesic.

extruded: Boolean

Whether the polyline is extruded.

drawsOccludedSegments: Boolean

Whether the polyline draws occluded segments.

zIndex: Int

The z-index of the polyline.

Public functions

writeToParcel

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

Public properties

altitudeMode

var altitudeModeInt

drawsOccludedSegments

var drawsOccludedSegmentsBoolean

extruded

var extrudedBoolean

geodesic

var geodesicBoolean

id

var idString!

outerColor

var outerColor: @ColorInt Int

outerWidth

var outerWidthDouble

path

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

strokeColor

var strokeColor: @ColorInt Int

strokeWidth

var strokeWidthDouble

zIndex

var zIndexInt

Extension functions

validate

fun PolylineOptions.validate(): Unit

Validates a specified PolylineOptions object.