summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLCompactCalloutView.m
diff options
context:
space:
mode:
Diffstat (limited to 'platform/ios/src/MGLCompactCalloutView.m')
-rw-r--r--platform/ios/src/MGLCompactCalloutView.m39
1 files changed, 0 insertions, 39 deletions
diff --git a/platform/ios/src/MGLCompactCalloutView.m b/platform/ios/src/MGLCompactCalloutView.m
deleted file mode 100644
index e499b7832f..0000000000
--- a/platform/ios/src/MGLCompactCalloutView.m
+++ /dev/null
@@ -1,39 +0,0 @@
-#import "MGLCompactCalloutView.h"
-
-#import "MGLAnnotation.h"
-
-@implementation MGLCompactCalloutView
-{
- id <MGLAnnotation> _representedObject;
-}
-
-@synthesize representedObject = _representedObject;
-
-+ (instancetype)platformCalloutView
-{
- return [[self alloc] init];
-}
-
-- (BOOL)isAnchoredToAnnotation {
- return YES;
-}
-
-- (BOOL)dismissesAutomatically {
- return NO;
-}
-
-- (void)setRepresentedObject:(id <MGLAnnotation>)representedObject
-{
- _representedObject = representedObject;
-
- if ([representedObject respondsToSelector:@selector(title)])
- {
- self.title = representedObject.title;
- }
- if ([representedObject respondsToSelector:@selector(subtitle)])
- {
- self.subtitle = representedObject.subtitle;
- }
-}
-
-@end