diff options
author | Jason Wray <jason@mapbox.com> | 2016-05-05 19:17:38 -0400 |
---|---|---|
committer | Jason Wray <jason@mapbox.com> | 2016-07-26 18:54:02 -0700 |
commit | 042d720a0e4cdd95b3bb6f820eb68f0d46405806 (patch) | |
tree | 6ef915b536cf7639513f19e86b8a74ff30275e7c | |
parent | 833a0a26df3d0beeb9f419f3eac91c8d2e21b437 (diff) | |
download | qtlocation-mapboxgl-upstream/fb-callouts-4392.tar.gz |
Make callout properties iPhone-specific, fix OS X build againupstream/fb-callouts-4392
So ugly!
-rw-r--r-- | platform/darwin/src/MGLPointAnnotation.m | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/platform/darwin/src/MGLPointAnnotation.m b/platform/darwin/src/MGLPointAnnotation.m index f23382049a..0daf62e86d 100644 --- a/platform/darwin/src/MGLPointAnnotation.m +++ b/platform/darwin/src/MGLPointAnnotation.m @@ -3,8 +3,11 @@ @implementation MGLPointAnnotation @synthesize coordinate; + +#if TARGET_OS_IPHONE @synthesize canShowCallout; @synthesize calloutView; +#endif - (NSString *)description { @@ -12,8 +15,11 @@ 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 |