GeoPolygon
public extension GeoPolygon
-
Initialize a
GeoPolygon, with values for bottom left corner and top right corner.Returns
nilif theGeoPointsrepresenting a polygon (outer ring or holes), don’t have at least 4 points. Returnsnilif the first and the lastGeoPointin a polygon are not the same.Declaration
Swift
convenience init?(outerRing: [(Double, Double)], holes: [[(Double, Double)]] = [])Parameters
outerRingThe polygon’s external (outer) ring.
holesThe holes (if any) in the polygon.
-
Initialize a
GeoPolygon, with values for bottom left corner and top right corner.Returns
nilif theGeoPointsrepresenting a polygon (outer ring or holes), don’t have at least 4 points. Returnsnilif the first and the lastGeoPointin a polygon are not the same.Declaration
Swift
convenience init?(outerRing: [(Double, Double)], holes: [(Double, Double)]...)Parameters
outerRingThe polygon’s external (outer) ring.
holesThe holes (if any) in the polygon.
View on GitHub
Install in Dash