mop-flutter-sdk/ios/Classes/FinAppletExt/ExtensionApi/Map/FATMapView.h

71 lines
1.8 KiB
Dart
Raw Normal View History

2023-12-06 14:56:29 +08:00
//
// FATMapView.h
// FBRetainCycleDetector
//
// Created by 王兆耀 on 2021/10/9.
//
#import <MapKit/MapKit.h>
#import "FATMapViewDelegate.h"
NS_ASSUME_NONNULL_BEGIN
@interface FATMapView : MKMapView <FATMapViewDelegate>
/// 发送Subscribe事件给page层
/// eventName 事件名
/// resultDic 事件的参数
@property (nonatomic, copy) void(^eventCallBack)(NSString *eventName, NSDictionary *paramDic);
- (instancetype)initWithParam:(NSDictionary *)param mapPageId:(NSString *)pageId;
- (void)updateWithParam:(NSDictionary *)param;
/// 获取中心点的经纬度
- (NSDictionary *)fat_getCenter;
/// 获取当前地图的倾斜角
- (NSDictionary *)fat_getskew;
/// 计算缩放级别
- (double)fat_getScale;
/// 移动到指定位置
/// @param data 要移动的经纬度
- (NSString *)fat_moveToLocation:(NSDictionary *)data;
/// 缩放地图,展示所有的经纬度
/// @param data 对应的数据
- (void)fat_includePoints:(NSDictionary *)data;
/// 获取左下,右上角的经纬度信息
- (NSDictionary *)fat_mapgetRegion;
/// 获取屏幕上的点对应的经纬度,坐标原点为地图左上角。
- (NSDictionary *)fat_fromScreenLocation;
/// 获取经纬度对应的屏幕坐标,坐标原点为地图左上角
/// @param data 包含经纬度信息
- (CGPoint)fat_toScreenLocation:(NSDictionary *)data;
/// 打开地图app进行导航
- (void)fat_openMapApp:(NSDictionary *)data;
/// 在地图上添加大头针
- (void)fat_addMarkers:(NSDictionary *)data;
/// 在地图上移除大头针
- (void)fat_removeMarkers:(NSDictionary *)data;
/// 在地图上平移大头针
- (BOOL)fat_translateMarker:(NSDictionary *)data;
/// 沿指定路径移动 marker
- (BOOL)fat_moveAlong:(NSDictionary *)data;
//- (void)fat_setLocMarkerIcon:(NSDictionary *)data;
@end
NS_ASSUME_NONNULL_END