27 lines
861 B
Plaintext
27 lines
861 B
Plaintext
#import "MGLForegroundStyleLayer.h"
|
|
#import "MGLStyleLayer_Private.h"
|
|
|
|
@implementation MGLForegroundStyleLayer
|
|
|
|
- (NSString *)sourceIdentifier {
|
|
[NSException raise:MGLAbstractClassException
|
|
format:@"MGLForegroundStyleLayer is an abstract class"];
|
|
return nil;
|
|
}
|
|
|
|
- (NSString *)description {
|
|
if (self.rawLayer) {
|
|
return [NSString stringWithFormat:
|
|
@"<%@: %p; identifier = %@; sourceIdentifier = %@; visible = %@>",
|
|
NSStringFromClass([self class]), (void *)self, self.identifier,
|
|
self.sourceIdentifier, self.visible ? @"YES" : @"NO"];
|
|
}
|
|
else {
|
|
return [NSString stringWithFormat:
|
|
@"<%@: %p; identifier = %@; sourceIdentifier = <unknown>; visible = NO>",
|
|
NSStringFromClass([self class]), (void *)self, self.identifier];
|
|
}
|
|
}
|
|
|
|
@end
|