summaryrefslogtreecommitdiff
path: root/include/mbgl/ios/MGLShape.h
diff options
context:
space:
mode:
authorJustin R. Miller <incanus@codesorcery.net>2015-06-15 18:30:39 -0700
committerJustin R. Miller <incanus@codesorcery.net>2015-06-15 18:30:39 -0700
commitbd0bf294bf1e350b184e54a824430c911dd66b9b (patch)
treed7c643cf197a8263fb1880ce73d034da253efe4c /include/mbgl/ios/MGLShape.h
parente75e538ddbb1dad0baad02576df86f6b8eb1510f (diff)
downloadqtlocation-mapboxgl-bd0bf294bf1e350b184e54a824430c911dd66b9b.tar.gz
squash of #1655: shape annotations support for core & iOS
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