Constructors
The following constructors are available globally.
-
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
uniqueIdentifierUnique identifier of this overlay. When
nilhash of WKT representation of given polygons will be used as unique identifier.polygonsPolygons to be displayed by this overlay.
Return Value
Properly initialized instance of
nilwhen given collection is empty. -
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
uniqueIdentifierUnique identifier of this overlay. When
nilhash of given WKT string will be used as unique identifier.wktWKT string with serialized polygons to be displayed by this overlay.
Return Value
Properly initialized instance of
nilwhen given WKT string has no polygons or is invalid.
-
Creates a new polygon with given coordinates.
Declaration
Swift
public convenience init(coordinates: [CLLocationCoordinate2D])
View on GitHub
Install in Dash
Constructors Reference