polygonWithCoordinates$1 static method
MLNPolygon
polygonWithCoordinates$1(
- Pointer<
CLLocationCoordinate2D> coords, { - required int count,
- NSArray? interiorPolygons$1,
Creates and returns an MLNPolygon object from the specified set of
coordinates and interior polygons.
@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.
@param interiorPolygons An array of MLNPolygon objects that define regions
excluded from the overall shape. If this array is nil or empty, the shape
is considered to have no interior polygons.
@return A new polygon object.
Implementation
static MLNPolygon polygonWithCoordinates$1(ffi.Pointer<CLLocationCoordinate2D> coords, {required int count,objc.NSArray? interiorPolygons$1}) {
final _ret = _objc_msgSend_inmhr7(_class_MLNPolygon, _sel_polygonWithCoordinates_count_interiorPolygons_, coords, count, interiorPolygons$1?.ref.pointer ?? ffi.nullptr);
return MLNPolygon.castFromPointer(_ret, retain: true, release: true);
}