PolygonOptions
public struct PolygonOptions : AnnotationOptions, Equatable
Polygon options.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Creates an instance of PolygonOptions from an encoded string.
Declaration
Swift
public init(polyline: String)
Parameters
polyline
String with the encoded polyline.
-
Creates an instance of PolygonOptions from a list of
CLLocationCoordinate2D
s.Warning
VerticesCLLocationCoordinate2D
s should be in CCW order.Declaration
Swift
public init(coordinates: [CLLocationCoordinate2D])
Parameters
coordinates
List of
CLLocationCoordinate2D
s.
-
List of coordinates of the vertices of a polygon.
Declaration
Swift
@EquatableWrapper public private(set) var coordinates: [CLLocationCoordinate2D] { get set }
-
Fill color of the polygon. Default is blue.
Declaration
Swift
public var fillColor: UIColor
-
Width of the stroke of the polygon. Default value is 0.
Declaration
Swift
public var strokeWidth: Double
-
Color of the stroke of the polygon. Default value is clear color.
Declaration
Swift
public var strokeColor: UIColor
-
TextureOptions
of the polygon.Declaration
Swift
public var textureOptions: TextureOptions?
-
Indicates if given annotation can produce delegate call on
MapDelegate
, default value is set totrue
.Declaration
Swift
public var isSelectable: Bool