|
//
// IPUBaiduMapManager.h
// IPUBaiduMap
//
// Created by 秋林 on 2018/12/13.
// Copyright © 2018 Asiainfo. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "IPUBaiduMapAnnotationViewModel.h"
#ifndef BDMapAvailable
#define BDMapAvailable [IPUBaiduMapManager sharedInstance].available
#endif
@protocol IPUBaiduMapCustomAnnotationViewDelegate <NSObject>
/**
用户将单个大头针和泡泡View的数据封装到约束Model中,然后放入熟组,给百度地图显示
@return NSArray<IPUBaiduMapAnnotationViewModel *>
*/
- (NSArray <IPUBaiduMapAnnotationViewModel *>*)ipuBaiduMapCustomAnnotationViewDataSource;
/**
返回自定义的泡泡View,它将在地图中泡泡View的位置显示,数据用的是IPUBaiduMapAnnotationViewModel
@return Custom PaoPaoView
*/
- (UIView *)ipuBaiduMapCustomAnnotationPaoPaoView;
@optional
/**
当点击了大头针的回调函数
@param model 回调中附带当前的数据model
*/
- (void)ipuBaiduMapCustomAnnotationViewDidSelected:(IPUBaiduMapAnnotationViewModel *)model;
/**
当点击了泡泡View返回的回调
@param model 回调中附带当前的数据model
*/
- (void)ipuBaiduMapCustomAnnotationPaoPaoViewDidSelected:(IPUBaiduMapAnnotationViewModel *)model;
/**
自定义泡泡是否初始渲染显示,默认返回NO,表示显示
@return 返回是否hidden
*/
- (BOOL)ipuBaiduMapCustomAnnotationPaoPaoViewDefaultHidden;
@end
@interface IPUBaiduMapManager : NSObject
+ (UIImage *)imageNamed:(NSString *)name;
+ (IPUBaiduMapManager *)sharedInstance;
- (void)checkPermisionWithKey:(NSString *)mapKey;
@property (nonatomic, assign) BOOL available;
@property (nonatomic, strong) id <IPUBaiduMapCustomAnnotationViewDelegate> delegate;
@end
|