summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLSource.h
blob: bb8f990828ab669c9651fcc6c4340c0138a1e528 (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
#import <Foundation/Foundation.h>

/**
 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.
 */
@interface MGLSource : NSObject

/**
 A string that uniquely identifies the source.
 */
@property (nonatomic, copy) NSString *sourceIdentifier;

/**
 Initializes a source with the given identifier.

 @param sourceIdentifier A string that uniquely identifies the source.
 */
- (instancetype)initWithSourceIdentifier:(NSString *)sourceIdentifier;

@end