PolygonOptions

public struct PolygonOptions : AnnotationOptions, Equatable

Polygon options.

  • 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 CLLocationCoordinate2Ds.

    Warning

    Vertices CLLocationCoordinate2Ds should be in CCW order.

    Declaration

    Swift

    public init(coordinates: [CLLocationCoordinate2D])

    Parameters

    coordinates

    List of CLLocationCoordinate2Ds.

  • 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 outline of the polygon. Default value is 0.

    Declaration

    Swift

    public var outlineWidth: Double
  • Color of the outline of the polygon. Default value is clear color.

    Declaration

    Swift

    public var outlineColor: 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 to true.

    Declaration

    Swift

    public var isSelectable: Bool