Ios mapgl maps reference Polyline | 2GIS Documentation

Polyline

Polyline map object

Extends: MapObject
public init(
	id: String = UUID().uuidString,
	points: [CLLocationCoordinate2D],
	style1: PolylineStyle? = nil,
	style2: PolylineStyle? = nil,
	style3: PolylineStyle? = nil
)

Creates new polyline on map Can be draw using 3 different styles

Parameters
id
String

Unique object id

points
CLLocationCoordinate2D[]

An array of polyline coordinates

style1
PolylineStyle?

Top level style, if missing use default width and color do draw a line

style2
PolylineStyle?

Second level style if needed

style3
PolylineStyle?

Third level style if needed

Properties

An array of polyline coordinates