summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLPointAnnotation.m
blob: 0daf62e86d805d300fa368c477acb47912ea8461 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#import "MGLPointAnnotation.h"

@implementation MGLPointAnnotation

@synthesize coordinate;

#if TARGET_OS_IPHONE
@synthesize canShowCallout;
@synthesize calloutView;
#endif

- (NSString *)description
{
    return [NSString stringWithFormat:@"<%@: %p; title = %@; subtitle = %@; coordinate = %f, %f; callout: %@ (%@)>",
            NSStringFromClass([self class]), (void *)self,
            self.title ? [NSString stringWithFormat:@"\"%@\"", self.title] : self.title,
            self.subtitle ? [NSString stringWithFormat:@"\"%@\"", self.subtitle] : self.subtitle,
            coordinate.latitude, coordinate.longitude
#if TARGET_OS_IPHONE
            , canShowCallout ? @"yes" : @"no", calloutView
#endif
            ];
}

@end