Ios webgl maps reference Polygon | 2GIS Documentation

Polygon

Class for creating a polygon on the map

Extends: MapObject
public init(
	id: String = UUID().uuidString,
	points: [CLLocationCoordinate2D],
	strokeColor: UIColor? = nil,
	strokeWidth: CGFloat? = nil,
	fillColor: UIColor? = nil,
	z: Int? = nil
)

Creates new polygon on map

Parameters
id
String

Unique object id

points
CLLocationCoordinate2D[]

Geographical coordinates of polygon points

strokeColor
UIColor?

Stroke color

strokeWidth
CGFloat?

Stroke width in screen points.

fillColor
UIColor?

Fill color

z
Int?

Draw order.

Properties

Geographical coordinates of polygon points