summaryrefslogtreecommitdiff
path: root/include/mbgl/ios/MGLShape.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/ios/MGLShape.h')
-rw-r--r--include/mbgl/ios/MGLShape.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/mbgl/ios/MGLShape.h b/include/mbgl/ios/MGLShape.h
new file mode 100644
index 0000000000..6693d2b302
--- /dev/null
+++ b/include/mbgl/ios/MGLShape.h
@@ -0,0 +1,14 @@
+#import <Foundation/Foundation.h>
+
+#import "MGLAnnotation.h"
+
+/** The `MGLShape` class is an abstract class that defines the basic properties for all shape-based annotation objects. This class must be subclassed and cannot be used as is. Subclasses are responsible for defining the geometry of the shape and providing an appropriate value for the coordinate property inherited from the `MGLAnnotation` protocol. */
+@interface MGLShape : NSObject <MGLAnnotation>
+
+/** The title of the shape annotation. The default value of this property is `nil`. */
+@property (nonatomic, copy) NSString *title;
+
+/** The subtitle of the shape annotation. The default value of this property is `nil`. */
+@property (nonatomic, copy) NSString *subtitle;
+
+@end