polygonWithCoordinates static method

MLNPolygonFeature polygonWithCoordinates(
  1. Pointer<CLLocationCoordinate2D> coords, {
  2. required int count,
})
override

Creates and returns an MLNPolygon object from the specified set of coordinates.

@param coords The array of coordinates defining the shape. The data in this array is copied to the new object. @param count The number of items in the coords array. @return A new polygon object.

Implementation

static MLNPolygonFeature polygonWithCoordinates(ffi.Pointer<CLLocationCoordinate2D> coords, {required int count}) {
  final _ret = _objc_msgSend_i90tul(_class_MLNPolygonFeature, _sel_polygonWithCoordinates_count_, coords, count);
  return MLNPolygonFeature.castFromPointer(_ret, retain: true, release: true);
}