9 #import <BaiduMapAPI_Base_Navi/BMKBaseComponent.h>
11 #import <BaiduMapAPI_Base/BMKBaseComponent.h>
23 @class CompassOverlay;
29 @property (nonatomic,strong) NSString*
text;
31 @property (nonatomic,assign) CLLocationCoordinate2D
pt;
33 @property (nonatomic,strong) NSString*
uid;
72 @property (nonatomic, weak) id<BMKMapViewDelegate> delegate;
75 @property (nonatomic) BMKMapType mapType;
84 @property (nonatomic) CGPoint compassPosition;
86 @property (nonatomic, readonly) CGSize compassSize;
89 @property (nonatomic) CLLocationCoordinate2D centerCoordinate;
92 @property (nonatomic)
float zoomLevel;
94 @property (nonatomic)
float minZoomLevel;
96 @property (nonatomic)
float maxZoomLevel;
99 @property (nonatomic)
int rotation;
102 @property (nonatomic)
int overlooking;
104 @property (nonatomic)
int minOverlooking;
107 @property(nonatomic, getter=isBuildingsEnabled) BOOL buildingsEnabled;
109 @property(nonatomic, assign) BOOL showMapPoi;
111 @property(nonatomic, getter=isTrafficEnabled) BOOL trafficEnabled;
113 @property(nonatomic, getter=isBaiduHeatMapEnabled) BOOL baiduHeatMapEnabled;
116 @property(nonatomic) BOOL gesturesEnabled;
118 @property(nonatomic, getter=isZoomEnabled) BOOL zoomEnabled;
120 @property(nonatomic, getter=isZoomEnabledWithTap) BOOL zoomEnabledWithTap;
122 @property(nonatomic, getter=isScrollEnabled) BOOL scrollEnabled;
124 @property(nonatomic, getter=isOverlookEnabled) BOOL overlookEnabled;
126 @property(nonatomic, getter=isRotateEnabled) BOOL rotateEnabled;
129 @property(nonatomic) BOOL forceTouchEnabled;
132 @property (nonatomic) BOOL showMapScaleBar;
135 @property (nonatomic) CGPoint mapScaleBarPosition;
138 @property (nonatomic, readonly) CGSize mapScaleBarSize;
151 @property (nonatomic) UIEdgeInsets mapPadding;
153 @property (nonatomic) BOOL updateTargetScreenPtWhenMapPaddingChanged;
161 @property(nonatomic, getter=isChangeWithTouchPointCenterEnabled) BOOL ChangeWithTouchPointCenterEnabled;
169 @property(nonatomic, getter=isChangeCenterWithDoubleTouchPointEnabled) BOOL ChangeCenterWithDoubleTouchPointEnabled;
176 + (void)customMapStyle:(NSString *)customMapStyleJsonFilePath __deprecated_msg("Please use - (
void)setCustomMapStyleEnable:(BOOL)enable");
182 + (void)enableCustomMapStyle:(BOOL)enable __deprecated_msg("Please use - (
void)setCustomMapStylePath:(NSString *)customMapStyleFilePath");
190 - (void)setCustomMapStylePath:(NSString *)customMapStyleFilePath;
199 - (void)setCustomMapStylePath:(NSString *)customMapStyleFilePath mode:(
int)mode;
207 - (void)setCustomMapStyleEnable:(BOOL)enable;
225 preLoad:(
void (^)(NSString *path))preLoad
226 success:(
void (^)(NSString *path))success
227 failure:(
void (^)(NSError *error, NSString *path))failure;
238 - (BOOL)setCustomTrafficColorForSmooth:(UIColor *)smooth slow:(UIColor *)slow congestion:(UIColor *)congestion severeCongestion:(UIColor *)severeCongestion;
245 +(void)willBackGround __deprecated_msg("废弃方法(空实现),逻辑由地图SDK控制");
251 +(void)didForeGround __deprecated_msg("废弃方法(空实现),逻辑由地图SDK控制");
255 -(void)viewWillAppear;
260 -(void)viewWillDisappear;
265 - (void)mapForceRefresh;
296 - (void)setCenterCoordinate:(CLLocationCoordinate2D)coordinate animated:(BOOL)animated;
302 -(UIImage*) takeSnapshot;
308 -(UIImage*) takeSnapshot:(CGRect)rect;
314 - (void)setCompassImage:(UIImage *)image;
321 - (void)setVisibleMapRect:(
BMKMapRect)mapRect animated:(BOOL)animate;
334 - (void)setVisibleMapRect:(
BMKMapRect)mapRect edgePadding:(UIEdgeInsets)insets animated:(BOOL)animate;
342 - (void)fitVisibleMapRect:(
BMKMapRect)mapRect edgePadding:(UIEdgeInsets)insets withAnimated:(BOOL)animate;
358 - (CGPoint)convertCoordinate:(CLLocationCoordinate2D)coordinate toPointToView:(UIView *)view;
366 - (CLLocationCoordinate2D)convertPoint:(CGPoint)point toCoordinateFromView:(UIView *)view;
390 - (CGRect)convertMapRect:(
BMKMapRect)mapRect toRectToView:(UIView *)view;
398 - (
BMKMapRect)convertRect:(CGRect)rect toMapRectFromView:(UIView *)view;
405 - (CGPoint)glPointForMapPoint:(
BMKMapPoint)mapPoint;
413 - (CGPoint *)glPointsForMapPoints:(
BMKMapPoint *)mapPoints count:(NSUInteger)count;
419 - (void)setMapCenterToScreenPt:(CGPoint)ptInScreen;
447 - (void)setMapStatus:(
BMKMapStatus*)mapStatus withAnimation:(BOOL)bAnimation;
455 - (void)setMapStatus:(
BMKMapStatus*)mapStatus withAnimation:(BOOL)bAnimation withAnimationTime:(
int)ulDuration;
461 - (BOOL)isSurpportBaiduHeatMap;
469 - (
float *)getProjectionMatrix;
477 - (
float *)getViewMatrix;
484 @property (nonatomic, assign) BOOL baseIndoorMapEnabled;
487 @property (nonatomic, assign) BOOL showIndoorMapPoi;
508 @property (nonatomic) BOOL showsUserLocation;
514 @property (nonatomic, readonly, getter=isUserLocationVisible) BOOL userLocationVisible;
532 @property (nonatomic, readonly) NSArray *annotations;
535 @property (nonatomic, assign) BOOL isSelectedAnnotationViewFront;
547 - (void)addAnnotations:(NSArray *)annotations;
559 - (void)removeAnnotations:(NSArray *)annotations;
573 - (
BMKAnnotationView *)dequeueReusableAnnotationViewWithIdentifier:(NSString *)identifier;
580 - (void)selectAnnotation:(
id <
BMKAnnotation>)annotation animated:(BOOL)animated;
587 - (void)deselectAnnotation:(
id <
BMKAnnotation>)annotation animated:(BOOL)animated;
594 - (void)showAnnotations:(NSArray *)annotations animated:(BOOL)animated;
617 - (void)addOverlays:(NSArray<
id <
BMKOverlay>> *)overlays;
623 - (void)removeOverlay:(
id <
BMKOverlay>)overlay;
629 - (void)removeOverlays:(NSArray<
id <
BMKOverlay>> *)overlays;
636 - (void)insertOverlay:(
id <
BMKOverlay>)overlay atIndex:(NSUInteger)index;
643 - (void)exchangeOverlayAtIndex:(NSUInteger)index1 withOverlayAtIndex:(NSUInteger)index2;
660 @property (nonatomic, readonly) NSArray *overlays;
681 - (void)removeHeatMap;
693 - (void)mapViewDidFinishLoading:(
BMKMapView *)mapView;
700 - (void)mapViewDidRenderValidData:(
BMKMapView *)mapView withError:(NSError *)error;
706 - (void)mapViewDidFinishRendering:(
BMKMapView *)mapView;
720 - (void)mapView:(
BMKMapView *)mapView regionWillChangeAnimated:(BOOL)animated;
735 - (void)mapView:(
BMKMapView *)mapView regionDidChangeAnimated:(BOOL)animated;
758 - (void)mapView:(
BMKMapView *)mapView didAddAnnotationViews:(NSArray *)views;
814 - (void)mapView:(
BMKMapView *)mapView didAddOverlayViews:(NSArray *)overlayViews;
835 - (void)mapView:(
BMKMapView *)mapView onClickedMapBlank:(CLLocationCoordinate2D)coordinate;
842 - (void)mapview:(
BMKMapView *)mapView onDoubleClick:(CLLocationCoordinate2D)coordinate;
849 - (void)mapview:(
BMKMapView *)mapView onLongClick:(CLLocationCoordinate2D)coordinate;
858 - (void)mapview:(
BMKMapView *)mapView onForceTouch:(CLLocationCoordinate2D)coordinate force:(CGFloat)force maximumPossibleForce:(CGFloat)maximumPossibleForce;
864 - (void)mapStatusDidChanged:(
BMKMapView *)mapView;
Definition: BMKMapView.h:529
Definition: BMKMapView.h:670
Definition: BMKMapView.h:481
Definition: BMKMapView.h:505
地图View类(和Overlay操作相关的接口)
Definition: BMKMapView.h:605
Definition: BMKAnnotationView.h:44
此类表示室内图基础信息
Definition: BMKBaseIndoorMapInfo.h:18
Definition: BMKCustomMapStyleOption.h:12
热力图的绘制数据和显示样式类
Definition: BMKHeatMap.h:33
此类表示定位图层自定义样式参数
Definition: BMKLocationViewDisplayParam.h:24
点击地图标注返回数据结构
Definition: BMKMapView.h:28
CLLocationCoordinate2D pt
点标注的经纬度坐标
Definition: BMKMapView.h:31
NSString * uid
点标注的uid,可能为空
Definition: BMKMapView.h:33
NSString * text
点标注的名称
Definition: BMKMapView.h:29
此类表示地图状态信息
Definition: BMKMapStatus.h:20
地图View类,使用此View可以显示地图窗口,并且对地图进行相关的操作
Definition: BMKMapView.h:70
该类是地图覆盖物View的基类,提供绘制overlay的接口但本身并无实现,所有地图覆盖物View需要继承自此类
Definition: BMKOverlayView.h:14
Definition: BMKUserLocation.h:14
该类为标注点的protocol,提供了标注类的基本信息函数
Definition: BMKAnnotation.h:13
MapView的Delegate,mapView通过此类来通知用户对应的事件
Definition: BMKMapView.h:686
该类是地图覆盖物的基类,所有地图的覆盖物需要继承自此类
Definition: BMKOverlay.h:17
表示一个经纬度区域
Definition: BMKTypes.h:160
表示一个经纬度区域
Definition: BMKTypes.h:167
地理坐标点,用直角地理坐标表示
Definition: BMKTypes.h:192
矩形,用直角地理坐标表示
Definition: BMKTypes.h:226