summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLSource.mm
blob: cdf003cb0010fb6226f59127235c2ed9dbc5b368 (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>)mbglSource {
    [NSException raise:@"Subclasses must override this method" format:@""];
    return nil;
}

@end