Renamed MGLCalloutView to MGLCompactCalloutView and MGLCalloutViewProtocol to MGLCalloutView to avoid an awkward workaround for a Swift name collision. Replaced individual title and subtitle properties with a single representedObject property that lets you use custom annotation properties in the custom callout view. Overrode a problematic SMCalloutView method. Added lots more documentation.
11 lines
275 B
Objective-C
11 lines
275 B
Objective-C
#import <UIKit/UIKit.h>
|
|
#import <mbgl/ios/MGLCalloutView.h>
|
|
|
|
/**
|
|
* Basic custom callout view to demonstrate how to
|
|
* add your own on your app. Will only show the
|
|
* callout title for demonstration purpose.
|
|
*/
|
|
@interface MBXCustomCalloutView : UIView <MGLCalloutView>
|
|
@end
|