Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Make callout properties iPhone-specific, fix OS X build again
Browse files Browse the repository at this point in the history
So ugly!
  • Loading branch information
friedbunny committed May 5, 2016
1 parent 260ed7e commit a9941ed
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions platform/darwin/src/MGLPointAnnotation.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,23 @@
@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,
canShowCallout ? @"yes" : @"no", calloutView];
coordinate.latitude, coordinate.longitude
#if TARGET_OS_IPHONE
, canShowCallout ? @"yes" : @"no", calloutView
#endif
];
}

@end

0 comments on commit a9941ed

Please sign in to comment.