refs #129: allow all annotation layer taps when enabled
Showing
1 changed file
with
3 additions
and
3 deletions
@@ -1482,10 +1482,10 @@ | @@ -1482,10 +1482,10 @@ | ||
1482 | 1482 | ||
1483 | CALayer *superlayer = [hit superlayer]; | 1483 | CALayer *superlayer = [hit superlayer]; |
1484 | 1484 | ||
1485 | - // See if tap was on a marker or marker label and send delegate protocol method | ||
1486 | - if ([hit isKindOfClass:[RMMarker class]]) | 1485 | + // See if tap was on an annotation layer or marker label and send delegate protocol method |
1486 | + if ([hit isKindOfClass:[RMMapLayer class]]) | ||
1487 | { | 1487 | { |
1488 | - [self tapOnAnnotation:[((RMMarker *)hit) annotation] atPoint:[recognizer locationInView:self]]; | 1488 | + [self tapOnAnnotation:[((RMMapLayer *)hit) annotation] atPoint:[recognizer locationInView:self]]; |
1489 | } | 1489 | } |
1490 | else if (superlayer != nil && [superlayer isKindOfClass:[RMMarker class]]) | 1490 | else if (superlayer != nil && [superlayer isKindOfClass:[RMMarker class]]) |
1491 | { | 1491 | { |
-
Please register or login to post a comment