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

@implementation MGLPointAnnotation

@synthesize coordinate;
@synthesize canShowCallout;
@synthesize calloutView;

- (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,
            canShowCallout ? @"yes" : @"no", calloutView];
}

@end