amap_map/ios/Classes/Category/MAPointAnnotation+Flutter.h

30 lines
823 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.

//
// MAPointAnnotation+Flutter.h
// amap_map
//
// Created by lly on 2020/11/9.
//
#import <MAMapKit/MAMapKit.h>
NS_ASSUME_NONNULL_BEGIN
/// AnnotationView的复用标识
extern NSString *const AMapFlutterAnnotationViewIdentifier;
/// 该拓展类型主要用于对地图原PointAnnotation添加一个唯一id,
/// 便于在地图回调代理中通过id快速找到对应的AMapMarker对象
/// 以此来构建对应的MAAnnotatioView
@interface MAPointAnnotation (Flutter)
//为Annotation拓展存储的flutter传入的markerId,便于快速查找对应的marker数据
@property (nullable,nonatomic,copy,readonly) NSString *markerId;
/// 使用MarkerId初始化对应的Annotation
/// @param markerId marker的唯一标识
- (instancetype)initWithMarkerId:(NSString *)markerId;
@end
NS_ASSUME_NONNULL_END