summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2015-12-01 13:55:54 -0800
committerMinh Nguyễn <mxn@1ec5.org>2015-12-13 17:26:53 -0800
commitf542d7b2a73ca63e2ab0099e998bd62bd57da9fc (patch)
tree892c79187f5dc29b90054e9f6ddaa1bc9d94023e /include
parent96145ef1707516484913447de95f33a77d8a59eb (diff)
downloadqtlocation-mapboxgl-f542d7b2a73ca63e2ab0099e998bd62bd57da9fc.tar.gz
[osx] Annotation tooltips
Annotations can optionally have tooltips. osxapp has an option, off by default, to assign a (localized) tooltip to each dropped pin.
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/darwin/MGLAnnotation.h8
-rw-r--r--include/mbgl/darwin/MGLShape.h7
2 files changed, 15 insertions, 0 deletions
diff --git a/include/mbgl/darwin/MGLAnnotation.h b/include/mbgl/darwin/MGLAnnotation.h
index aef21ecbc6..34b086f22e 100644
--- a/include/mbgl/darwin/MGLAnnotation.h
+++ b/include/mbgl/darwin/MGLAnnotation.h
@@ -1,5 +1,6 @@
#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
+#import <TargetConditionals.h>
#import "MGLTypes.h"
@@ -29,6 +30,13 @@ NS_ASSUME_NONNULL_BEGIN
* This string is displayed in the callout for the associated annotation. */
@property (nonatomic, readonly, copy, nullable) NSString *subtitle;
+#if !TARGET_OS_IPHONE
+
+/** The string containing the annotation’s tooltip. */
+@property (nonatomic, readonly, copy, nullable) NSString *toolTip;
+
+#endif
+
@end
NS_ASSUME_NONNULL_END
diff --git a/include/mbgl/darwin/MGLShape.h b/include/mbgl/darwin/MGLShape.h
index f54d4bfb74..c1b84816f2 100644
--- a/include/mbgl/darwin/MGLShape.h
+++ b/include/mbgl/darwin/MGLShape.h
@@ -15,6 +15,13 @@ NS_ASSUME_NONNULL_BEGIN
/** The subtitle of the shape annotation. The default value of this property is `nil`. */
@property (nonatomic, copy, nullable) NSString *subtitle;
+#if !TARGET_OS_IPHONE
+
+/** The tooltip of the shape annotation. The default value of this property is `nil`. */
+@property (nonatomic, copy, nullable) NSString *toolTip;
+
+#endif
+
@end
NS_ASSUME_NONNULL_END