MGLSource
@interface MGLSource : NSObject
A source supplies data to be shown on the map. Sources don’t contain styling
details like color or width. Use subclasses of MGLBaseStyleLayer
to give
visual representation to sources.
You should use the concrete subclasses of MGLSource
to create vector,
raster, GeoJSON, and other source types.
-
A string that uniquely identifies the source.
Declaration
Objective-C
@property (readwrite, copy, nonatomic) NSString *sourceIdentifier;
Swift
var sourceIdentifier: String! { get set }
-
Initializes a source with the given identifier.
Declaration
Objective-C
- (instancetype)initWithSourceIdentifier:(NSString *)sourceIdentifier;
Swift
init!(sourceIdentifier: String!)
Parameters
sourceIdentifier
A string that uniquely identifies the source.