blob: c4dfd8207b8fb3d1b7539722e5089c93f9412d36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
#import <mbgl/util/feature.hpp>
@interface NSArray (MGLAdditions)
- (std::vector<mbgl::Value>)mgl_vector;
/** Returns a string resulting from inserting a separator between each attributed string in the array */
- (NSAttributedString *)mgl_attributedComponentsJoinedByString:(NSString *)separator;
/**
Converts std::vector<CLLocationCoordinate> into an NSArray containing dictionary
representations of coordinates with the following structure:
[{"latitude": lat, "longitude": lng}]
*/
+ (NSArray *)mgl_coordinatesFromCoordinates:(std::vector<CLLocationCoordinate2D>)coords;
/**
Converts the receiver into a std::vector<CLLocationCoordinate>.
Receiver must conform to the following structure:
[{"latitude": lat, "longitude": lng}]
*/
- (std::vector<CLLocationCoordinate2D>)mgl_coordinates;
@end
|