[ios, macos] fixes #5962 added geojson options to support clustering

This commit is contained in:
Fredrik Karlsson
2016-08-31 09:45:23 +02:00
committed by Jesse Bounds
parent 7e208c46ce
commit ad095e458d
6 changed files with 76 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
#import "MGLSource.h"
#import "MGLTypes.h"
#import "MGLGeoJSONOptions.h"
NS_ASSUME_NONNULL_BEGIN
@@ -38,6 +39,8 @@ NS_ASSUME_NONNULL_BEGIN
*/
@property (nonatomic, readonly, nullable) NSURL *URL;
@property (nonatomic, readonly, nullable) MGLGeoJSONOptions *geoJSONOptions;
/**
Initializes a source with the given identifier and GeoJSON data.
@@ -46,6 +49,8 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (instancetype)initWithSourceIdentifier:(NSString *)sourceIdentifier geoJSONData:(NSData *)data NS_DESIGNATED_INITIALIZER;
- (instancetype)initWithSourceIdentifier:(NSString *)sourceIdentifier geoJSONData:(NSData *)data options:(MGLGeoJSONOptions *)options NS_DESIGNATED_INITIALIZER;
/**
Initializes a source with the given identifier and URL.