Authored by Justin R. Miller

fixes #182: allow special annotation classes to remove their layer

... ... @@ -34,7 +34,9 @@
- (void)setLayer:(RMMapLayer *)newLayer
{
if (newLayer)
if ( ! newLayer)
[super setLayer:nil];
else
RMLog(@"Setting a custom layer on an %@ is a no-op", [self class]);
}
... ...
... ... @@ -57,7 +57,9 @@
- (void)setLayer:(RMMapLayer *)newLayer
{
if (newLayer)
if ( ! newLayer)
[super setLayer:nil];
else
RMLog(@"Setting a custom layer on an %@ is a no-op", [self class]);
}
... ...
... ... @@ -34,7 +34,9 @@
- (void)setLayer:(RMMapLayer *)newLayer
{
if (newLayer)
if ( ! newLayer)
[super setLayer:nil];
else
RMLog(@"Setting a custom layer on an %@ is a no-op", [self class]);
}
... ...