Added methods to hide and unhide marker at the marker level. Has not tested the …
…code so it may not compile. Fix as necessary...
Showing
2 changed files
with
13 additions
and
0 deletions
@@ -43,6 +43,8 @@ extern NSString * const RMMarkerRedKey; | @@ -43,6 +43,8 @@ extern NSString * const RMMarkerRedKey; | ||
43 | - (void) removeLabel; | 43 | - (void) removeLabel; |
44 | 44 | ||
45 | - (void) replaceImage:(CGImageRef)image anchorPoint:(CGPoint)_anchorPoint; | 45 | - (void) replaceImage:(CGImageRef)image anchorPoint:(CGPoint)_anchorPoint; |
46 | +- (void) hide; | ||
47 | +- (void) unhide; | ||
46 | 48 | ||
47 | - (void) dealloc; | 49 | - (void) dealloc; |
48 | 50 |
@@ -226,6 +226,17 @@ static CGImageRef _markerBlue = nil; | @@ -226,6 +226,17 @@ static CGImageRef _markerBlue = nil; | ||
226 | return nil; | 226 | return nil; |
227 | } | 227 | } |
228 | 228 | ||
229 | +- (void) hide | ||
230 | +{ | ||
231 | + [self setHidden:YES]; | ||
232 | +} | ||
233 | + | ||
234 | +- (void) unhide | ||
235 | +{ | ||
236 | + [self setHidden:NO]; | ||
237 | +} | ||
238 | + | ||
239 | + | ||
229 | /*- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event | 240 | /*- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event |
230 | { | 241 | { |
231 | // [label setAlpha:1.0f - [label alpha]]; | 242 | // [label setAlpha:1.0f - [label alpha]]; |
-
Please register or login to post a comment