BaseMultiPolygonOverlay

@available(* 2.1.0, *)
open class BaseMultiPolygonOverlay : NSObject, MultiPolygonOverlay

A base implementation of MultiPolygonOverlay protocol.

  • Undocumented

    Declaration

    Swift

    @available(* 2.1.0, *)
    open class BaseMultiPolygonOverlay : NSObject, MultiPolygonOverlay
  • Undocumented

    Declaration

    Swift

    @available(* 2.1.0, *)
    open class BaseMultiPolygonOverlay : NSObject, MultiPolygonOverlay
  • A base implementation of MultiPolygonOverlay protocol.

    Declaration

    Swift

    var complexShapePointCount: Int { get }
  • A base implementation of MultiPolygonOverlay protocol.

    Declaration

    Swift

    var selected: Bool { get set }
  • A base implementation of MultiPolygonOverlay protocol.

    Declaration

    Swift

    var polygons: [MKPolygon] { get }
  • A base implementation of MultiPolygonOverlay protocol.

    Declaration

    Swift

    var simplifiedPolygon: MKPolygon { get }
  • A base implementation of MultiPolygonOverlay protocol.

    Declaration

    Swift

    var simplifiedShapePointCount: Int { get }
  • A base implementation of MultiPolygonOverlay protocol.

    Declaration

    Swift

    var uniqueIdentifier: String { get }
  • Creates a new instance with given WKT string with polygons to be displayed as a single one.

    Declaration

    Swift

    public convenience init?(uniqueIdentifier: String? = default, wkt: String)

    Parameters

    uniqueIdentifier

    Unique identifier of this overlay. When nil hash of given WKT string will be used as unique identifier.

    wkt

    WKT string with serialized polygons to be displayed by this overlay.

    Return Value

    Properly initialized instance of nil when given WKT string has no polygons or is invalid.

  • Creates a new instance with given collection of polygons to be displayed as a single one.

    Declaration

    Swift

    public init?(uniqueIdentifier: String? = default, polygons: [MKPolygon])

    Parameters

    uniqueIdentifier

    Unique identifier of this overlay. When nil hash of WKT representation of given polygons will be used as unique identifier.

    polygons

    Polygons to be displayed by this overlay.

    Return Value

    Properly initialized instance of nil when given collection is empty.