Authored by Justin R. Miller

only warn dev of layer no-op when layer is passed

@@ -32,8 +32,9 @@ @@ -32,8 +32,9 @@
32 32
33 @implementation RMPointAnnotation 33 @implementation RMPointAnnotation
34 34
35 -- (void)setLayer:(RMMapLayer *)layer 35 +- (void)setLayer:(RMMapLayer *)newLayer
36 { 36 {
  37 + if (newLayer)
37 RMLog(@"Setting a custom layer on an %@ is a no-op", [self class]); 38 RMLog(@"Setting a custom layer on an %@ is a no-op", [self class]);
38 } 39 }
39 40
@@ -55,8 +55,9 @@ @@ -55,8 +55,9 @@
55 [super dealloc]; 55 [super dealloc];
56 } 56 }
57 57
58 -- (void)setLayer:(RMMapLayer *)layer 58 +- (void)setLayer:(RMMapLayer *)newLayer
59 { 59 {
  60 + if (newLayer)
60 RMLog(@"Setting a custom layer on an %@ is a no-op", [self class]); 61 RMLog(@"Setting a custom layer on an %@ is a no-op", [self class]);
61 } 62 }
62 63
@@ -32,8 +32,9 @@ @@ -32,8 +32,9 @@
32 32
33 @implementation RMPolylineAnnotation 33 @implementation RMPolylineAnnotation
34 34
35 -- (void)setLayer:(RMMapLayer *)layer 35 +- (void)setLayer:(RMMapLayer *)newLayer
36 { 36 {
  37 + if (newLayer)
37 RMLog(@"Setting a custom layer on an %@ is a no-op", [self class]); 38 RMLog(@"Setting a custom layer on an %@ is a no-op", [self class]);
38 } 39 }
39 40