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" 23 @property (nonatomic,strong) NSString*
text;
25 @property (nonatomic,assign) CLLocationCoordinate2D
pt;
27 @property (nonatomic,strong) NSString*
uid;
31 BMKUserTrackingModeNone = 0,
32 BMKUserTrackingModeHeading,
33 BMKUserTrackingModeFollow,
34 BMKUserTrackingModeFollowWithHeading,
35 } BMKUserTrackingMode;
39 BMKLogoPositionLeftBottom = 0,
40 BMKLogoPositionLeftTop,
41 BMKLogoPositionCenterBottom,
42 BMKLogoPositionCenterTop,
43 BMKLogoPositionRightBottom,
44 BMKLogoPositionRightTop,
49 BMKSwitchIndoorFloorSuccess = 0,
50 BMKSwitchIndoorFloorFailed,
51 BMKSwitchIndoorFloorNotFocused,
52 BMKSwitchIndoorFloorNotExist,
53 } BMKSwitchIndoorFloorError;
57 BMKRegionChangeReasonGesture = 0,
58 BMKRegionChangeReasonEvent,
59 BMKRegionChangeReasonAPIs,
60 } BMKRegionChangeReason;
66 @property (nonatomic, weak) id<BMKMapViewDelegate> delegate;
69 @property (nonatomic) BMKMapType mapType;
78 @property (nonatomic) CGPoint compassPosition;
80 @property (nonatomic, readonly) CGSize compassSize;
83 @property (nonatomic) CLLocationCoordinate2D centerCoordinate;
86 @property (nonatomic)
float zoomLevel;
88 @property (nonatomic)
float minZoomLevel;
90 @property (nonatomic)
float maxZoomLevel;
93 @property (nonatomic)
int rotation;
96 @property (nonatomic)
int overlooking;
98 @property (nonatomic)
int minOverlooking;
101 @property(nonatomic, getter=isBuildingsEnabled) BOOL buildingsEnabled;
103 @property(nonatomic, assign) BOOL showMapPoi;
105 @property(nonatomic, getter=isTrafficEnabled) BOOL trafficEnabled;
107 @property(nonatomic, getter=isBaiduHeatMapEnabled) BOOL baiduHeatMapEnabled;
110 @property(nonatomic) BOOL gesturesEnabled;
112 @property(nonatomic, getter=isZoomEnabled) BOOL zoomEnabled;
114 @property(nonatomic, getter=isZoomEnabledWithTap) BOOL zoomEnabledWithTap;
116 @property(nonatomic, getter=isScrollEnabled) BOOL scrollEnabled;
118 @property(nonatomic, getter=isOverlookEnabled) BOOL overlookEnabled;
120 @property(nonatomic, getter=isRotateEnabled) BOOL rotateEnabled;
123 @property(nonatomic) BOOL forceTouchEnabled;
126 @property (nonatomic) BOOL showMapScaleBar;
129 @property (nonatomic) CGPoint mapScaleBarPosition;
132 @property (nonatomic, readonly) CGSize mapScaleBarSize;
135 @property (nonatomic) BMKLogoPosition logoPosition;
138 @property (nonatomic)
BMKMapRect visibleMapRect;
145 @property (nonatomic) UIEdgeInsets mapPadding;
147 @property (nonatomic) BOOL updateTargetScreenPtWhenMapPaddingChanged;
155 @property(nonatomic, getter=isChangeWithTouchPointCenterEnabled) BOOL ChangeWithTouchPointCenterEnabled;
163 @property(nonatomic, getter=isChangeCenterWithDoubleTouchPointEnabled) BOOL ChangeCenterWithDoubleTouchPointEnabled;
170 + (void)customMapStyle:(NSString*) customMapStyleJsonFilePath;
175 + (void)enableCustomMapStyle:(BOOL) enable;
186 - (BOOL)setCustomTrafficColorForSmooth:(UIColor *)smooth slow:(UIColor *)slow congestion:(UIColor *)congestion severeCongestion:(UIColor *)severeCongestion;
193 +(void)willBackGround __deprecated_msg("废弃方法(空实现),逻辑由地图SDK控制");
199 +(void)didForeGround __deprecated_msg("废弃方法(空实现),逻辑由地图SDK控制");
203 -(void)viewWillAppear;
208 -(void)viewWillDisappear;
213 - (void)mapForceRefresh;
244 - (void)setCenterCoordinate:(CLLocationCoordinate2D)coordinate animated:(BOOL)animated;
250 -(UIImage*) takeSnapshot;
256 -(UIImage*) takeSnapshot:(CGRect)rect;
262 - (void)setCompassImage:(UIImage *)image;
269 - (void)setVisibleMapRect:(
BMKMapRect)mapRect animated:(BOOL)animate;
282 - (void)setVisibleMapRect:(
BMKMapRect)mapRect edgePadding:(UIEdgeInsets)insets animated:(BOOL)animate;
290 - (void)fitVisibleMapRect:(
BMKMapRect)mapRect edgePadding:(UIEdgeInsets)insets withAnimated:(BOOL)animate;
306 - (CGPoint)convertCoordinate:(CLLocationCoordinate2D)coordinate toPointToView:(UIView *)view;
314 - (CLLocationCoordinate2D)convertPoint:(CGPoint)point toCoordinateFromView:(UIView *)view;
338 - (CGRect)convertMapRect:(
BMKMapRect)mapRect toRectToView:(UIView *)view;
346 - (
BMKMapRect)convertRect:(CGRect)rect toMapRectFromView:(UIView *)view;
353 - (CGPoint)glPointForMapPoint:(
BMKMapPoint)mapPoint;
361 - (CGPoint *)glPointsForMapPoints:(
BMKMapPoint *)mapPoints count:(NSUInteger)count;
367 - (void)setMapCenterToScreenPt:(CGPoint)ptInScreen;
395 - (void)setMapStatus:(
BMKMapStatus*)mapStatus withAnimation:(BOOL)bAnimation;
403 - (void)setMapStatus:(
BMKMapStatus*)mapStatus withAnimation:(BOOL)bAnimation withAnimationTime:(
int)ulDuration;
409 - (BOOL)isSurpportBaiduHeatMap;
416 @property (nonatomic, assign) BOOL baseIndoorMapEnabled;
419 @property (nonatomic, assign) BOOL showIndoorMapPoi;
427 - (BMKSwitchIndoorFloorError)switchBaseIndoorMapFloor:(NSString*)strFloor withID:(NSString*)strID;
440 @property (nonatomic) BOOL showsUserLocation;
443 @property (nonatomic) BMKUserTrackingMode userTrackingMode;
446 @property (nonatomic, readonly, getter=isUserLocationVisible) BOOL userLocationVisible;
464 @property (nonatomic, readonly) NSArray *annotations;
467 @property (nonatomic, assign) BOOL isSelectedAnnotationViewFront;
479 - (void)addAnnotations:(NSArray *)annotations;
491 - (void)removeAnnotations:(NSArray *)annotations;
505 - (
BMKAnnotationView *)dequeueReusableAnnotationViewWithIdentifier:(NSString *)identifier;
512 - (void)selectAnnotation:(
id <
BMKAnnotation>)annotation animated:(BOOL)animated;
519 - (void)deselectAnnotation:(
id <
BMKAnnotation>)annotation animated:(BOOL)animated;
526 - (void)showAnnotations:(NSArray *)annotations animated:(BOOL)animated;
549 - (void)addOverlays:(NSArray *)overlays;
555 - (void)removeOverlay:(
id <
BMKOverlay>)overlay;
561 - (void)removeOverlays:(NSArray *)overlays;
568 - (void)insertOverlay:(
id <
BMKOverlay>)overlay atIndex:(NSUInteger)index;
575 - (void)exchangeOverlayAtIndex:(NSUInteger)index1 withOverlayAtIndex:(NSUInteger)index2;
592 @property (nonatomic, readonly) NSArray *overlays;
613 - (void)removeHeatMap;
625 - (void)mapViewDidFinishLoading:(
BMKMapView *)mapView;
631 - (void)mapViewDidFinishRendering:(
BMKMapView *)mapView;
645 - (void)mapView:(
BMKMapView *)mapView regionWillChangeAnimated:(BOOL)animated;
653 - (void)mapView:(
BMKMapView *)mapView regionWillChangeAnimated:(BOOL)animated reason:(BMKRegionChangeReason)reason;
660 - (void)mapView:(
BMKMapView *)mapView regionDidChangeAnimated:(BOOL)animated;
668 - (void)mapView:(
BMKMapView *)mapView regionDidChangeAnimated:(BOOL)animated reason:(BMKRegionChangeReason)reason;
683 - (void)mapView:(
BMKMapView *)mapView didAddAnnotationViews:(NSArray *)views;
716 - (void)mapView:(
BMKMapView *)mapView annotationView:(
BMKAnnotationView *)view didChangeDragState:(BMKAnnotationViewDragState)newState
717 fromOldState:(BMKAnnotationViewDragState)oldState;
739 - (void)mapView:(
BMKMapView *)mapView didAddOverlayViews:(NSArray *)overlayViews;
760 - (void)mapView:(
BMKMapView *)mapView onClickedMapBlank:(CLLocationCoordinate2D)coordinate;
767 - (void)mapview:(
BMKMapView *)mapView onDoubleClick:(CLLocationCoordinate2D)coordinate;
774 - (void)mapview:(
BMKMapView *)mapView onLongClick:(CLLocationCoordinate2D)coordinate;
783 - (void)mapview:(
BMKMapView *)mapView onForceTouch:(CLLocationCoordinate2D)coordinate force:(CGFloat)force maximumPossibleForce:(CGFloat)maximumPossibleForce;
789 - (void)mapStatusDidChanged:(
BMKMapView *)mapView;
该类为标注点的protocol,提供了标注类的基本信息函数
Definition: BMKAnnotation.h:13
此类表示地图状态信息
Definition: BMKMapStatus.h:15
该类是地图覆盖物View的基类,提供绘制overlay的接口但本身并无实现,所有地图覆盖物View需要继承自此类
Definition: BMKOverlayView.h:12
该类是地图覆盖物的基类,所有地图的覆盖物需要继承自此类
Definition: BMKOverlay.h:13
矩形,用直角地理坐标表示
Definition: BMKTypes.h:200
此类表示定位图层自定义样式参数
Definition: BMKLocationViewDisplayParam.h:24
NSString * uid
点标注的uid,可能为空
Definition: BMKMapView.h:27
表示一个经纬度区域
Definition: BMKTypes.h:134
Definition: BMKMapView.h:413
热力图的绘制数据和显示样式类
Definition: BMKHeatMap.h:28
点击地图标注返回数据结构
Definition: BMKMapView.h:21
此类表示室内图基础信息
Definition: BMKBaseIndoorMapInfo.h:17
Definition: BMKAnnotationView.h:43
地图View类,使用此View可以显示地图窗口,并且对地图进行相关的操作
Definition: BMKMapView.h:63
MapView的Delegate,mapView通过此类来通知用户对应的事件
Definition: BMKMapView.h:618
Definition: BMKMapView.h:437
地图View类(和Overlay操作相关的接口)
Definition: BMKMapView.h:537
CLLocationCoordinate2D pt
点标注的经纬度坐标
Definition: BMKMapView.h:25
Definition: BMKMapView.h:602
Definition: BMKUserLocation.h:13
Definition: BMKMapView.h:461
NSString * text
点标注的名称
Definition: BMKMapView.h:23
表示一个经纬度区域
Definition: BMKTypes.h:141
地理坐标点,用直角地理坐标表示
Definition: BMKTypes.h:166