Authored by Thomas Rasch

o Added a property for an additional badge icon

... ... @@ -47,7 +47,7 @@
// provided for storage of arbitrary user data
id userInfo;
NSString *annotationType;
UIImage *annotationIcon;
UIImage *annotationIcon, *badgeIcon;
CGPoint anchorPoint;
}
... ... @@ -56,6 +56,7 @@
@property (nonatomic, retain) id userInfo;
@property (nonatomic, retain) NSString *annotationType;
@property (nonatomic, retain) UIImage *annotationIcon;
@property (nonatomic, retain) UIImage *badgeIcon;
@property (nonatomic, assign) CGPoint anchorPoint;
// the location on screen. don't set this directly, use the coordinate property.
... ...
... ... @@ -40,7 +40,7 @@
@synthesize title;
@synthesize userInfo;
@synthesize annotationType;
@synthesize annotationIcon;
@synthesize annotationIcon, badgeIcon;
@synthesize anchorPoint;
@synthesize mapView;
... ... @@ -69,6 +69,7 @@
self.annotationType = nil;
self.annotationIcon = nil;
self.badgeIcon = nil;
self.anchorPoint = CGPointZero;
self.hasBoundingBox = NO;
self.enabled = YES;
... ... @@ -90,6 +91,7 @@
self.annotationType = nil;
self.annotationIcon = nil;
self.badgeIcon = nil;
[super dealloc];
}
... ...