8 #import <BaiduMapAPI_Base/BMKBaseComponent.h> 9 #import "BMKAnnotation.h" 10 #import "BMKAnnotationView.h" 11 #import "BMKOverlayView.h" 12 #import "UIKit/UIKit.h" 13 #import "BMKMapStatus.h" 14 #import "BMKLocationViewDisplayParam.h" 15 #import "BMKHeatMap.h" 16 #import "BMKBaseIndoorMapInfo.h" 17 #import "BMKCustomMapStyleOption.h" 24 @property (nonatomic,strong) NSString*
text;
26 @property (nonatomic,assign) CLLocationCoordinate2D
pt;
28 @property (nonatomic,strong) NSString*
uid;
32 BMKUserTrackingModeNone = 0,
33 BMKUserTrackingModeHeading,
34 BMKUserTrackingModeFollow,
35 BMKUserTrackingModeFollowWithHeading,
36 } BMKUserTrackingMode;
40 BMKLogoPositionLeftBottom = 0,
41 BMKLogoPositionLeftTop,
42 BMKLogoPositionCenterBottom,
43 BMKLogoPositionCenterTop,
44 BMKLogoPositionRightBottom,
45 BMKLogoPositionRightTop,
50 BMKSwitchIndoorFloorSuccess = 0,
51 BMKSwitchIndoorFloorFailed,
52 BMKSwitchIndoorFloorNotFocused,
53 BMKSwitchIndoorFloorNotExist,
54 } BMKSwitchIndoorFloorError;
58 BMKRegionChangeReasonGesture = 0,
59 BMKRegionChangeReasonEvent,
60 BMKRegionChangeReasonAPIs,
61 } BMKRegionChangeReason;
67 @property (nonatomic, weak) id<BMKMapViewDelegate> delegate;
70 @property (nonatomic) BMKMapType mapType;
79 @property (nonatomic) CGPoint compassPosition;
81 @property (nonatomic, readonly) CGSize compassSize;
84 @property (nonatomic) CLLocationCoordinate2D centerCoordinate;
87 @property (nonatomic)
float zoomLevel;
89 @property (nonatomic)
float minZoomLevel;
91 @property (nonatomic)
float maxZoomLevel;
94 @property (nonatomic)
int rotation;
97 @property (nonatomic)
int overlooking;
99 @property (nonatomic)
int minOverlooking;
102 @property(nonatomic, getter=isBuildingsEnabled) BOOL buildingsEnabled;
104 @property(nonatomic, assign) BOOL showMapPoi;
106 @property(nonatomic, getter=isTrafficEnabled) BOOL trafficEnabled;
108 @property(nonatomic, getter=isBaiduHeatMapEnabled) BOOL baiduHeatMapEnabled;
111 @property(nonatomic) BOOL gesturesEnabled;
113 @property(nonatomic, getter=isZoomEnabled) BOOL zoomEnabled;
115 @property(nonatomic, getter=isZoomEnabledWithTap) BOOL zoomEnabledWithTap;
117 @property(nonatomic, getter=isScrollEnabled) BOOL scrollEnabled;
119 @property(nonatomic, getter=isOverlookEnabled) BOOL overlookEnabled;
121 @property(nonatomic, getter=isRotateEnabled) BOOL rotateEnabled;
124 @property(nonatomic) BOOL forceTouchEnabled;
127 @property (nonatomic) BOOL showMapScaleBar;
130 @property (nonatomic) CGPoint mapScaleBarPosition;
133 @property (nonatomic, readonly) CGSize mapScaleBarSize;
136 @property (nonatomic) BMKLogoPosition logoPosition;
139 @property (nonatomic)
BMKMapRect visibleMapRect;
146 @property (nonatomic) UIEdgeInsets mapPadding;
148 @property (nonatomic) BOOL updateTargetScreenPtWhenMapPaddingChanged;
156 @property(nonatomic, getter=isChangeWithTouchPointCenterEnabled) BOOL ChangeWithTouchPointCenterEnabled;
164 @property(nonatomic, getter=isChangeCenterWithDoubleTouchPointEnabled) BOOL ChangeCenterWithDoubleTouchPointEnabled;
171 + (void)customMapStyle:(NSString *)customMapStyleJsonFilePath __deprecated_msg("Please use - (
void)setCustomMapStyleEnable:(BOOL)enable");
177 + (void)enableCustomMapStyle:(BOOL)enable __deprecated_msg("Please use - (
void)setCustomMapStylePath:(NSString *)customMapStyleJsonFilePath");
185 - (void)setCustomMapStylePath:(NSString *)customMapStyleJsonFilePath;
194 - (void)setCustomMapStylePath:(NSString *)customMapStyleJsonFilePath mode:(
int)mode;
202 - (void)setCustomMapStyleEnable:(BOOL)enable;
220 preLoad:(
void (^)(NSString *path))preLoad
221 success:(
void (^)(NSString *path))success
222 failure:(
void (^)(NSError *error, NSString *path))failure;
233 - (BOOL)setCustomTrafficColorForSmooth:(UIColor *)smooth slow:(UIColor *)slow congestion:(UIColor *)congestion severeCongestion:(UIColor *)severeCongestion;
240 +(void)willBackGround __deprecated_msg("废弃方法(空实现),逻辑由地图SDK控制");
246 +(void)didForeGround __deprecated_msg("废弃方法(空实现),逻辑由地图SDK控制");
250 -(void)viewWillAppear;
255 -(void)viewWillDisappear;
260 - (void)mapForceRefresh;
291 - (void)setCenterCoordinate:(CLLocationCoordinate2D)coordinate animated:(BOOL)animated;
297 -(UIImage*) takeSnapshot;
303 -(UIImage*) takeSnapshot:(CGRect)rect;
309 - (void)setCompassImage:(UIImage *)image;
316 - (void)setVisibleMapRect:(
BMKMapRect)mapRect animated:(BOOL)animate;
329 - (void)setVisibleMapRect:(
BMKMapRect)mapRect edgePadding:(UIEdgeInsets)insets animated:(BOOL)animate;
337 - (void)fitVisibleMapRect:(
BMKMapRect)mapRect edgePadding:(UIEdgeInsets)insets withAnimated:(BOOL)animate;
353 - (CGPoint)convertCoordinate:(CLLocationCoordinate2D)coordinate toPointToView:(UIView *)view;
361 - (CLLocationCoordinate2D)convertPoint:(CGPoint)point toCoordinateFromView:(UIView *)view;
385 - (CGRect)convertMapRect:(
BMKMapRect)mapRect toRectToView:(UIView *)view;
393 - (
BMKMapRect)convertRect:(CGRect)rect toMapRectFromView:(UIView *)view;
400 - (CGPoint)glPointForMapPoint:(
BMKMapPoint)mapPoint;
408 - (CGPoint *)glPointsForMapPoints:(
BMKMapPoint *)mapPoints count:(NSUInteger)count;
414 - (void)setMapCenterToScreenPt:(CGPoint)ptInScreen;
442 - (void)setMapStatus:(
BMKMapStatus*)mapStatus withAnimation:(BOOL)bAnimation;
450 - (void)setMapStatus:(
BMKMapStatus*)mapStatus withAnimation:(BOOL)bAnimation withAnimationTime:(
int)ulDuration;
456 - (BOOL)isSurpportBaiduHeatMap;
464 - (
float *)getProjectionMatrix;
472 - (
float *)getViewMatrix;
479 @property (nonatomic, assign) BOOL baseIndoorMapEnabled;
482 @property (nonatomic, assign) BOOL showIndoorMapPoi;
490 - (BMKSwitchIndoorFloorError)switchBaseIndoorMapFloor:(NSString*)strFloor withID:(NSString*)strID;
503 @property (nonatomic) BOOL showsUserLocation;
506 @property (nonatomic) BMKUserTrackingMode userTrackingMode;
509 @property (nonatomic, readonly, getter=isUserLocationVisible) BOOL userLocationVisible;
527 @property (nonatomic, readonly) NSArray *annotations;
530 @property (nonatomic, assign) BOOL isSelectedAnnotationViewFront;
542 - (void)addAnnotations:(NSArray *)annotations;
554 - (void)removeAnnotations:(NSArray *)annotations;
568 - (
BMKAnnotationView *)dequeueReusableAnnotationViewWithIdentifier:(NSString *)identifier;
575 - (void)selectAnnotation:(
id <
BMKAnnotation>)annotation animated:(BOOL)animated;
582 - (void)deselectAnnotation:(
id <
BMKAnnotation>)annotation animated:(BOOL)animated;
589 - (void)showAnnotations:(NSArray *)annotations animated:(BOOL)animated;
612 - (void)addOverlays:(NSArray *)overlays;
618 - (void)removeOverlay:(
id <
BMKOverlay>)overlay;
624 - (void)removeOverlays:(NSArray *)overlays;
631 - (void)insertOverlay:(
id <
BMKOverlay>)overlay atIndex:(NSUInteger)index;
638 - (void)exchangeOverlayAtIndex:(NSUInteger)index1 withOverlayAtIndex:(NSUInteger)index2;
655 @property (nonatomic, readonly) NSArray *overlays;
676 - (void)removeHeatMap;
688 - (void)mapViewDidFinishLoading:(
BMKMapView *)mapView;
695 - (void)mapViewDidRenderValidData:(
BMKMapView *)mapView withError:(NSError *)error;
701 - (void)mapViewDidFinishRendering:(
BMKMapView *)mapView;
715 - (void)mapView:(
BMKMapView *)mapView regionWillChangeAnimated:(BOOL)animated;
723 - (void)mapView:(
BMKMapView *)mapView regionWillChangeAnimated:(BOOL)animated reason:(BMKRegionChangeReason)reason;
730 - (void)mapView:(
BMKMapView *)mapView regionDidChangeAnimated:(BOOL)animated;
738 - (void)mapView:(
BMKMapView *)mapView regionDidChangeAnimated:(BOOL)animated reason:(BMKRegionChangeReason)reason;
753 - (void)mapView:(
BMKMapView *)mapView didAddAnnotationViews:(NSArray *)views;
786 - (void)mapView:(
BMKMapView *)mapView annotationView:(
BMKAnnotationView *)view didChangeDragState:(BMKAnnotationViewDragState)newState
787 fromOldState:(BMKAnnotationViewDragState)oldState;
809 - (void)mapView:(
BMKMapView *)mapView didAddOverlayViews:(NSArray *)overlayViews;
830 - (void)mapView:(
BMKMapView *)mapView onClickedMapBlank:(CLLocationCoordinate2D)coordinate;
837 - (void)mapview:(
BMKMapView *)mapView onDoubleClick:(CLLocationCoordinate2D)coordinate;
844 - (void)mapview:(
BMKMapView *)mapView onLongClick:(CLLocationCoordinate2D)coordinate;
853 - (void)mapview:(
BMKMapView *)mapView onForceTouch:(CLLocationCoordinate2D)coordinate force:(CGFloat)force maximumPossibleForce:(CGFloat)maximumPossibleForce;
859 - (void)mapStatusDidChanged:(
BMKMapView *)mapView;
该类为标注点的protocol,提供了标注类的基本信息函数
Definition: BMKAnnotation.h:13
此类表示地图状态信息
Definition: BMKMapStatus.h:15
该类是地图覆盖物View的基类,提供绘制overlay的接口但本身并无实现,所有地图覆盖物View需要继承自此类
Definition: BMKOverlayView.h:13
该类是地图覆盖物的基类,所有地图的覆盖物需要继承自此类
Definition: BMKOverlay.h:13
矩形,用直角地理坐标表示
Definition: BMKTypes.h:200
此类表示定位图层自定义样式参数
Definition: BMKLocationViewDisplayParam.h:24
NSString * uid
点标注的uid,可能为空
Definition: BMKMapView.h:28
表示一个经纬度区域
Definition: BMKTypes.h:134
Definition: BMKMapView.h:476
热力图的绘制数据和显示样式类
Definition: BMKHeatMap.h:28
点击地图标注返回数据结构
Definition: BMKMapView.h:22
此类表示室内图基础信息
Definition: BMKBaseIndoorMapInfo.h:17
Definition: BMKAnnotationView.h:43
地图View类,使用此View可以显示地图窗口,并且对地图进行相关的操作
Definition: BMKMapView.h:64
MapView的Delegate,mapView通过此类来通知用户对应的事件
Definition: BMKMapView.h:681
Definition: BMKMapView.h:500
地图View类(和Overlay操作相关的接口)
Definition: BMKMapView.h:600
CLLocationCoordinate2D pt
点标注的经纬度坐标
Definition: BMKMapView.h:26
Definition: BMKCustomMapStyleOption.h:11
Definition: BMKMapView.h:665
Definition: BMKUserLocation.h:13
Definition: BMKMapView.h:524
NSString * text
点标注的名称
Definition: BMKMapView.h:24
表示一个经纬度区域
Definition: BMKTypes.h:141
地理坐标点,用直角地理坐标表示
Definition: BMKTypes.h:166