MBXGeometry
extension MBXGeometry
-
Initialize a
MBXGeometrypoint from a coordinate.Declaration
Swift
public convenience init(coordinate: CLLocationCoordinate2D)Parameters
coordinateThe coordinate to represent the
MBXGeometrypoint. -
Initialize a
MBXGeometryline from an array of coordinates.Declaration
Swift
public convenience init(line coordinates: [CLLocationCoordinate2D])Parameters
coordinatesThe coordinates to represent the
MBXGeometryline. -
Initialize a
MBXGeometrypolygon from a two-dimensional array of coordinates.Declaration
Swift
public convenience init(polygon coordinates: [[CLLocationCoordinate2D]])Parameters
coordinatesThe coordinates to represent the
MBXGeometrypolygon. -
Initialize a
MBXGeometrymultipoint from an array ofCLLocationCoordinates.Declaration
Swift
public convenience init(multiPoint coordinates: [CLLocationCoordinate2D])Parameters
coordinatesThe coordinates to represent the
MBXGeometrymultipoint. -
Initialize a
MBXGeometrymultiline from a two-dimensional array ofCLLocationCoordinates.Declaration
Swift
public convenience init(multiLine coordinates: [[CLLocationCoordinate2D]])Parameters
coordinatesThe coordinates to represent the
MBXGeometrymultiline. -
Initialize a
MBXGeometrymultipolygon from a three-dimensional array ofCLLocationCoordinates.Declaration
Swift
public convenience init(multiPolygon coordinates: [[[CLLocationCoordinate2D]]])Parameters
coordinatesThe coordinates to represent the
MBXGeometrymultipolygon. -
Allows an
MBXGeometryobject to be initialized with an turfGeometryobject.Declaration
Swift
public convenience init(geometry: Geometry)Parameters
geometryThe turf
Geometryobject to transform into theMBXGeometrytype.
MBXGeometry Extension Reference