MKPolygon

Undocumented

  • Returns a CGPathRef equivalent to this polygon in given renderer.

    Note

    Source.

    Declaration

    Swift

    @available(* 1.2.0, *)
    public func polyPath(for renderer: MKOverlayPathRenderer) -> CGPath?

    Parameters

    renderer

    Renderer defining coordinate system where returned path will be drawn.

    Return Value

    Path equivalent to this polygon in given renderer.

  • Returns coordinates of points of this polygon.

    Declaration

    Swift

    public func coordinates() -> [CLLocationCoordinate2D]
  • Creates a new polygon with given coordinates.

    Declaration

    Swift

    public convenience init(coordinates: [CLLocationCoordinate2D])
  • Returns whether point at given coordinates is contained in this polygon or not.

    Declaration

    Swift

    public func contains(pointAt coordinates: CLLocationCoordinate2D) -> Bool

    Parameters

    coordinates

    Coordinates of point to be checked.

    Return Value

    true if point is contained in this polygon.

  • Creates a rectangular polygon covering given MinMaxLonLat.

    Declaration

    Swift

    @available(* 1.4.0, *)
    public convenience init(minMaxLatLon: MinMaxLatLon)

    Parameters

    minMaxLonLat

    MinMaxLonLat to be covered by polygon.

    Return Value

    Rectangular polygon covering given MinMaxLonLat.

  • Returns WKT multipolygon for this polygon.

    Declaration

    Swift

    public func wktMultipolygonString() -> String