You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
2.3 KiB
Objective-C

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

//
// BMFAnnotationModel.h
// flutter_bmfmap
//
// Created by zbj on 2020/2/11.
//
#import "BMFModel.h"
@class BMFCoordinate;
@class BMFMapPoint;
@class BMFAnnotationViewOptions;
NS_ASSUME_NONNULL_BEGIN
@interface BMFAnnotationModel : BMFModel
/// flutter层mark的唯一id(用于区别哪个marker)
@property (nonatomic, copy) NSString *Id;
/// 标题
@property (nonatomic, copy) NSString *title;
/// 子标题
@property (nonatomic, copy) NSString *subtitle;
/// annotation中心坐标.
@property (nonatomic, strong) BMFCoordinate *position;
/// 标注固定在指定屏幕位置, 必须与screenPointToLock一起使用。 注意拖动Annotation isLockedToScreen会被设置为false。
/// 若isLockedToScreen为true拖动地图时annotaion不会跟随移动
/// 若isLockedToScreen为false拖动地图时annotation会跟随移动。
@property (nonatomic, assign) BOOL isLockedToScreen;
/// 标注锁定在屏幕上的位置注意地图初始化后才能设置screenPointToLock。
/// 可以在地图加载完成的回调方法mapViewDidFinishLoading中使用此属性。
@property (nonatomic, strong)BMFMapPoint *screenPointToLock;
/// annotationView的参数集合
@property (nonatomic, strong) BMFAnnotationViewOptions *annotationViewOptions;
@end
@interface BMFAnnotationViewOptions : BMFModel
/// annotationView复用标识符
@property (nonatomic, copy) NSString *identifier;
/// 图片路径
@property (nonatomic, copy) NSString *icon;
/// 默认情况下, annotation
/// view的中心位于annotation的坐标位置可以设置centerOffset改变view的位置
/// 正的偏移使view朝右下方移动负的朝左上方单位是像素
@property (nonatomic, strong) BMFMapPoint *centerOffset;
/// 默认情况下,标注没有3D效果可以设置enabled3D改变使用3D效果使得标注在地图旋转和俯视时跟随旋转、俯视
@property (nonatomic, assign) BOOL enabled3D;
/// 默认为YES,当为NO时view忽略触摸事件
@property (nonatomic, assign) BOOL enabled;
/// 当设为YES并实现了setCoordinate:方法时支持将view在地图上拖动, iOS 3.2以后支持
@property (nonatomic, assign) BOOL draggable;
/// 默认为NO,当为YES时为会弹出气泡
@property (nonatomic, assign) BOOL selected;
@end
NS_ASSUME_NONNULL_END