Permalink
Browse files

Fix annotation selection

  • Loading branch information...
1 parent b36e958 commit 6227cfe2dc8fb6f24a03b5e5a15d761a0d64e8e3 Patrick Nollet committed Nov 7, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 ADClusterMapView/ADMapCluster.h
  2. +1 −1 ADClusterMapView/ADMapCluster.m
@@ -15,7 +15,7 @@
ADMapCluster * _leftChild;
ADMapCluster * _rightChild;
MKMapRect _mapRect;
- id<MKAnnotation> _annotation;
+ ADMapPointAnnotation * _annotation;
NSString * _clusterTitle;
NSInteger _depth;
}
@@ -307,7 +307,7 @@ - (BOOL)isAncestorOf:(ADMapCluster *)mapCluster {
}
- (BOOL)isRootClusterForAnnotation:(id<MKAnnotation>)annotation {
- return _annotation == annotation || [_leftChild isRootClusterForAnnotation:annotation] || [_rightChild isRootClusterForAnnotation:annotation];
+ return _annotation.annotation == annotation || [_leftChild isRootClusterForAnnotation:annotation] || [_rightChild isRootClusterForAnnotation:annotation];
}
- (NSString *)title {

0 comments on commit 6227cfe

Please sign in to comment.