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

@implementation MGLForegroundStyleLayer

- (instancetype)initWithIdentifier:(NSString *)identifier source:(MGLSource *)source {
    if (self = [super initWithIdentifier:identifier]) {
        _sourceIdentifier = source.identifier;
    }
    return self;
}

- (NSString *)description {
    return [NSString stringWithFormat:
            @"<%@: %p; identifier = %@; sourceIdentifier = %@; visible = %@>",
            NSStringFromClass([self class]), (void *)self, self.identifier,
            self.sourceIdentifier, self.visible ? @"YES" : @"NO"];
}

@end