diff options
author | Justin R. Miller <incanus@codesorcery.net> | 2015-06-15 18:30:39 -0700 |
---|---|---|
committer | Justin R. Miller <incanus@codesorcery.net> | 2015-06-15 18:30:39 -0700 |
commit | bd0bf294bf1e350b184e54a824430c911dd66b9b (patch) | |
tree | d7c643cf197a8263fb1880ce73d034da253efe4c /include/mbgl/ios/MGLMultiPoint.h | |
parent | e75e538ddbb1dad0baad02576df86f6b8eb1510f (diff) | |
download | qtlocation-mapboxgl-bd0bf294bf1e350b184e54a824430c911dd66b9b.tar.gz |
squash of #1655: shape annotations support for core & iOS
Diffstat (limited to 'include/mbgl/ios/MGLMultiPoint.h')
-rw-r--r-- | include/mbgl/ios/MGLMultiPoint.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/mbgl/ios/MGLMultiPoint.h b/include/mbgl/ios/MGLMultiPoint.h new file mode 100644 index 0000000000..8da956b539 --- /dev/null +++ b/include/mbgl/ios/MGLMultiPoint.h @@ -0,0 +1,17 @@ +#import <Foundation/Foundation.h> +#import <CoreLocation/CoreLocation.h> + +#import "MGLShape.h" + +/** The `MGLMultiPoint` class is an abstract superclass used to define shapes composed of multiple points. You should not create instances of this class directly. Instead, you should create instances of the `MGLPolyline` or `MGLPolygon` classes. However, you can use the method and properties of this class to access information about the specific points associated with the line or polygon. */ +@interface MGLMultiPoint : MGLShape + +/** The number of points associated with the shape. (read-only) */ +@property (nonatomic, readonly) NSUInteger pointCount; + +/** Retrieves one or more coordinates associated with the shape. +* @param coords On input, you must provide a C array of structures large enough to hold the desired number of coordinates. On output, this structure contains the requested coordinate data. +* @param range The range of points you want. The `location` field indicates the first point you are requesting, with `0` being the first point, `1` being the second point, and so on. The `length` field indicates the number of points you want. The array in _`coords`_ must be large enough to accommodate the number of requested coordinates. */ +- (void)getCoordinates:(CLLocationCoordinate2D *)coords range:(NSRange)range; + +@end |