Authored by Thomas Rasch

o Exchanged a magic string literal with a constant

... ... @@ -15,6 +15,8 @@ typedef enum {
nodeTypeNode
} RMQuadTreeNodeType;
#define kRMClusterAnnotationTypeName @"RMClusterAnnotation"
#pragma mark -
#pragma mark RMQuadTree nodes
... ...
... ... @@ -255,7 +255,7 @@
}
cachedClusterAnnotation = [[RMAnnotation alloc] initWithMapView:mapView coordinate:[[mapView projection] projectedPointToCoordinate:clusterMarkerPosition] andTitle:[NSString stringWithFormat:@"%d", enclosedAnnotationsCount]];
cachedClusterAnnotation.annotationType = @"RMClusterMarker";
cachedClusterAnnotation.annotationType = kRMClusterAnnotationTypeName;
cachedClusterAnnotation.userInfo = self;
}
... ...