Files
MapLibreParticleLab/platform/ios/src/MGLAnnotationImage_Private.h
Minh Nguyễn bc9b52e0ab [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
2016-04-19 14:24:59 -07:00

22 lines
510 B
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#import "MGLAnnotationImage.h"
NS_ASSUME_NONNULL_BEGIN
@protocol MGLAnnotationImageDelegate <NSObject>
@required
- (void)annotationImageNeedsRedisplay:(MGLAnnotationImage *)annotationImage;
@end
@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
NS_ASSUME_NONNULL_END