diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-02-05 08:04:07 -0800 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-04-19 14:24:59 -0700 |
commit | bc9b52e0abe5d2616fe3f84c923e0083001e8732 (patch) | |
tree | 99537072a743711c73c55b82658af569fecf4b44 /platform/ios/src/MGLAnnotationImage_Private.h | |
parent | 8703f1ef4bcf5cdbafb36a7ed5e7f2c1fc3333ce (diff) | |
download | qtlocation-mapboxgl-bc9b52e0abe5d2616fe3f84c923e0083001e8732.tar.gz |
[ios] Annotation image deletion
Added an API for deleting unused annotation images’ images. When you nil out the image of an MGLAnnotationImage, MGLMapView deletes the sprite from the style and recreates any annotation associated with the MGLAnnotationImage instance; the MGLAnnotationImage’s falls back to SDK’s default annotation image.
In iosapp, deselecting an annotation resets its image to the default; deselecting it again restores the image.
ref #3185
Diffstat (limited to 'platform/ios/src/MGLAnnotationImage_Private.h')
-rw-r--r-- | platform/ios/src/MGLAnnotationImage_Private.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/ios/src/MGLAnnotationImage_Private.h b/platform/ios/src/MGLAnnotationImage_Private.h index f22a9ac4e2..dcd8a49bf9 100644 --- a/platform/ios/src/MGLAnnotationImage_Private.h +++ b/platform/ios/src/MGLAnnotationImage_Private.h @@ -11,6 +11,9 @@ NS_ASSUME_NONNULL_BEGIN @interface MGLAnnotationImage (Private) +/// Unique identifier of the sprite image used by the style to represent the receiver’s `image`. +@property (nonatomic, strong, nullable) NSString *styleIconIdentifier; + @property (nonatomic, weak) id<MGLAnnotationImageDelegate> delegate; @end |