diff options
author | ituaijagbone <i.ijagbone@gmail.com> | 2016-09-29 16:44:10 -0700 |
---|---|---|
committer | Jesse Bounds <jesse@rebounds.net> | 2016-10-14 14:59:28 -0700 |
commit | f558f6bc4a12fc621589c0b0f50d42c18e00453c (patch) | |
tree | c43e9b4722d72b8220e936719cbe14a8f9fa5958 /platform/darwin/src/MGLPolygon+MGLAdditions.h | |
parent | 242c7f8fe62eb863cf300855aee2f04022311288 (diff) | |
download | qtlocation-mapboxgl-f558f6bc4a12fc621589c0b0f50d42c18e00453c.tar.gz |
[ios, macos] Add feature initializer
This adds a features initializer to MGLGeoJSONSource. The initializer
takes shapes and converts them to JSON representation before passing
to core. This also adds methods to the MGLShape concrete subclasses
so that they can represent themselves in NSDictionary form suitable
for transforming to JSON (GeoJSON).
Diffstat (limited to 'platform/darwin/src/MGLPolygon+MGLAdditions.h')
-rw-r--r-- | platform/darwin/src/MGLPolygon+MGLAdditions.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLPolygon+MGLAdditions.h b/platform/darwin/src/MGLPolygon+MGLAdditions.h new file mode 100644 index 0000000000..c9ef95b6bc --- /dev/null +++ b/platform/darwin/src/MGLPolygon+MGLAdditions.h @@ -0,0 +1,15 @@ +// +// MGLPolygonFeature+MGLAdditions.h +// ios +// +// Created by Mapbox on 9/30/16. +// Copyright © 2016 Mapbox. All rights reserved. +// + +#import <Mapbox/Mapbox.h> + +@interface MGLPolygon (MGLAdditions) + +- (NS_ARRAY_OF(id) *)mgl_coordinates; + +@end |