diff options
Diffstat (limited to 'platform/darwin/include/MGLPolyline.h')
-rw-r--r-- | platform/darwin/include/MGLPolyline.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/platform/darwin/include/MGLPolyline.h b/platform/darwin/include/MGLPolyline.h new file mode 100644 index 0000000000..c28299c7e0 --- /dev/null +++ b/platform/darwin/include/MGLPolyline.h @@ -0,0 +1,26 @@ +#import <Foundation/Foundation.h> +#import <CoreLocation/CoreLocation.h> + +#import "MGLMultiPoint.h" +#import "MGLOverlay.h" + +#import "MGLTypes.h" + +NS_ASSUME_NONNULL_BEGIN + +/** The `MGLPolyline` class represents a shape consisting of one or more points that define connecting line segments. The points are connected end-to-end in the order they are provided. The first and last points are not connected to each other. */ +@interface MGLPolyline : MGLMultiPoint <MGLOverlay> + +/** + Creates and returns an `MGLPolyline` 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 polyline object. + */ ++ (instancetype)polylineWithCoordinates:(CLLocationCoordinate2D *)coords + count:(NSUInteger)count; + +@end + +NS_ASSUME_NONNULL_END |