summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLSource.mm
blob: 2b73074b094dfbaa985d6a41f2f578aa928a6274 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#import "MGLSource.h"

#include <mbgl/style/source.hpp>

@implementation MGLSource

- (instancetype)initWithSourceIdentifier:(NSString *)sourceIdentifier {
    if (self = [super init]) {
        _sourceIdentifier = sourceIdentifier;
    }
    return self;
}

- (std::unique_ptr<mbgl::style::Source>)mbgl_source {
    [NSException raise:@"Subclasses must override this method" format:@""];
    return nil;
}

@end