GeoJSONSource
Objective-C
@interface GeoJSONSource : NSObject
Swift
class GeoJSONSource : NSObject
This class will read GeoJSON via URL with an associated Styled Layer Descriptor via URL. It will then parse both of them and apply the SLD style to the GeoJSON data. This results in visual data in much the same way as loading vector tiles would.
-
Undocumented
Declaration
Objective-C
- (id _Nullable)initWithViewC:(NSObject<MaplyRenderControllerProtocol> * _Nonnull)baseVC GeoJSONURL:(NSURL * _Nonnull)geoJSONURL sldURL:(NSURL * _Nonnull)sldURL relativeDrawPriority:(int)relativeDrawPriority ;
Swift
init?(viewC baseVC: NSObjectProtocol & MaplyRenderControllerProtocol, geoJSONURL: URL, sldURL: URL, relativeDrawPriority: Int32)
-
Undocumented
Declaration
Objective-C
- (void)startParseWithCompletion:(nonnull void (^)(void)) completionBlock;
Swift
func startParse(completion completionBlock: @escaping () -> Void)
-
Undocumented
Declaration
Objective-C
- (void)startParse;
Swift
func startParse()
-
Undocumented
Declaration
Objective-C
@property (nonatomic, readonly) bool loaded
Swift
var loaded: Bool { get }
-
Undocumented
Declaration
Objective-C
@property (nonatomic) bool enabled
Swift
var enabled: Bool { get set }