22NS_ASSUME_NONNULL_BEGIN
26@protocol BMKMapViewDelegate;
39@property (nonatomic, copy, nullable) NSString *
text;
42@property (nonatomic, assign) CLLocationCoordinate2D
pt;
45@property (nonatomic, copy, nullable) NSString *
uid;
89typedef enum : NSInteger {
120@property (nonatomic, weak, nullable) id<BMKMapViewDelegate> delegate;
123@property (nonatomic, weak, nullable) id<BMKMapGestureDelegate> gestureDelegate;
126@property (nonatomic, assign) BMKMapType mapType;
138@property (nonatomic, strong) UIColor *backgroundColor;
143@property (nonatomic, strong) UIImage *backgroundImage;
152@property (nonatomic, assign) CGPoint compassPosition;
155@property (nonatomic, readonly) CGSize compassSize;
158@property (nonatomic, assign) CLLocationCoordinate2D centerCoordinate;
163@property (nonatomic, assign) NSInteger fontSizeLevel;
166@property (nonatomic, assign)
float zoomLevel;
169@property (nonatomic, assign)
float minZoomLevel;
172@property (nonatomic, assign)
float maxZoomLevel;
175@property (nonatomic, assign)
int rotation;
178@property (nonatomic, assign)
int overlooking;
181@property (nonatomic, assign)
int minOverlooking;
184@property(nonatomic, getter = isBuildingsEnabled) BOOL buildingsEnabled;
187@property(nonatomic, assign) BOOL showMapPoi;
190@property(nonatomic, getter = isTrafficEnabled) BOOL trafficEnabled;
192@property(nonatomic, getter = isCustomTrafficColorEnabled) BOOL customTrafficColorEnabled;
195@property(nonatomic, getter = isBaiduHeatMapEnabled) BOOL baiduHeatMapEnabled;
198@property(nonatomic) BOOL gesturesEnabled;
201@property(nonatomic) BOOL doubleTapHoldPanEnabled;
204@property(nonatomic, getter = isZoomEnabled) BOOL zoomEnabled;
207@property(nonatomic, getter = isZoomEnabledWithTap) BOOL zoomEnabledWithTap;
210@property(nonatomic, getter = isScrollEnabled) BOOL scrollEnabled;
213@property(nonatomic, getter = isOverlookEnabled) BOOL overlookEnabled;
216@property(nonatomic, getter = isRotateEnabled) BOOL rotateEnabled;
219@property(nonatomic, assign) BOOL forceTouchEnabled;
222@property(nonatomic, assign) BOOL gestureZoomAnimationEnabled;
225@property (nonatomic, assign) BOOL showMapScaleBar;
228@property (nonatomic, assign) CGPoint mapScaleBarPosition;
231@property (nonatomic, readonly) CGSize mapScaleBarSize;
242@property (nonatomic, assign) UIEdgeInsets mapPadding;
245@property (nonatomic, assign) BOOL updateTargetScreenPtWhenMapPaddingChanged;
251@property(nonatomic, getter = isChangeWithTouchPointCenterEnabled) BOOL ChangeWithTouchPointCenterEnabled;
257@property(nonatomic, getter = isChangeCenterWithDoubleTouchPointEnabled) BOOL ChangeCenterWithDoubleTouchPointEnabled;
260@property(nonatomic, assign) BOOL supportBackgroundDraw;
265+ (void)customMapStyle:(NSString *)customMapStyleJsonFilePath __deprecated_msg("Please use - (
void)setCustomMapStyleEnable:(BOOL)enable");
269+ (void)enableCustomMapStyle:(BOOL)enable __deprecated_msg("Please use - (
void)setCustomMapStylePath:(NSString *)customMapStyleFilePath");
273+ (void)willBackGround __deprecated_msg("废弃方法(空实现),逻辑由地图SDK控制");
277+ (void)didForeGround __deprecated_msg("废弃方法(空实现),逻辑由地图SDK控制");
281+ (BOOL)setBaiduMapSDKMetalEnable:(BOOL)metalEnable;
285+ (BOOL)getBaiduMapSDKMetalEnable;
289+ (BOOL)setBaiduMapSDKOverlayNewVersionEnable:(BOOL)newVersionEnable;
293+ (BOOL)getBaiduMapSDKOverlayNewVersionEnable;
301- (BOOL)setCustomTrafficColorForSmooth:(UIColor *)smooth
303 congestion:(UIColor *)congestion
304 severeCongestion:(UIColor *)severeCongestion;
307- (void)viewWillAppear;
310- (void)viewWillDisappear;
313- (void)cleanCacheWithMapType:(BMKMapType)type;
316- (void)mapForceRefresh;
337- (void)setCenterCoordinate:(CLLocationCoordinate2D)coordinate animated:(BOOL)animated;
343- (nullable UIImage *)takeSnapshot;
349- (nullable UIImage *)takeSnapshot:(CGRect)rect;
353- (void)setCompassImage:(UIImage *)image;
358- (void)setVisibleMapRect:(
BMKMapRect)mapRect animated:(BOOL)animate;
367- (void)setVisibleMapRect:(
BMKMapRect)mapRect edgePadding:(UIEdgeInsets)insets animated:(BOOL)animate;
373- (void)fitVisibleMapRect:(
BMKMapRect)mapRect edgePadding:(UIEdgeInsets)insets withAnimated:(BOOL)animate;
385- (CGPoint)convertCoordinate:(CLLocationCoordinate2D)coordinate toPointToView:(UIView *)view;
391- (CLLocationCoordinate2D)convertPoint:(CGPoint)point toCoordinateFromView:(UIView *)view;
409- (CGRect)convertMapRect:(
BMKMapRect)mapRect toRectToView:(UIView *)view;
415- (
BMKMapRect)convertRect:(CGRect)rect toMapRectFromView:(UIView *)view;
420- (CGPoint)screenPointFromMapPoint3:(
BMKMapPoint3)mapPoint3;
425- (CGPoint)glPointForMapPoint:(
BMKMapPoint)mapPoint;
431- (CGPoint *)glPointsForMapPoints:(
BMKMapPoint *)mapPoints count:(NSUInteger)count;
436- (void)setMapCenterToScreenPt:(CGPoint)ptInScreen;
455- (void)setMapStatus:(
BMKMapStatus *)mapStatus withAnimation:(BOOL)bAnimation;
461- (void)setMapStatus:(
BMKMapStatus *)mapStatus withAnimation:(BOOL)bAnimation withAnimationTime:(
int)ulDuration;
465- (BOOL)isSurpportBaiduHeatMap;
470- (
float *)getProjectionMatrix;
475- (
float *)getViewMatrix;
478- (void)touchesBegan:(NSSet<
BMKMapTouch *> *)touches;
479- (void)touchesMoved:(NSSet<
BMKMapTouch *> *)touches;
480- (void)touchesEnded:(NSSet<
BMKMapTouch *> *)touches;
481- (void)touchesCancelled:(NSSet<
BMKMapTouch *> *)touches;
484@interface BMKMapView (CustomMapAPI)
489- (BOOL)setCustomMapStylePath:(NSString *)customMapStyleFilePath;
495- (BOOL)setCustomMapStylePath:(NSString *)customMapStyleFilePath mode:(
int)mode;
500- (BOOL)setCustomMapStyleEnable:(BOOL)enable;
515 preLoad:(
void (^ _Nullable)(NSString * _Nullable path))preLoad
516 success:(
void (^ _Nullable)(NSString * path))success
517 failure:(
void (^ _Nullable)(NSError * error, NSString * _Nullable path))failure;
522@interface BMKMapView (IndoorMapAPI)
525@property (nonatomic, assign) BOOL baseIndoorMapEnabled;
528@property (nonatomic, assign) BOOL showIndoorMapPoi;
531@property (nonatomic, assign) BOOL showDotPoi;
545@interface BMKMapView (LocationViewAPI)
548@property (nonatomic, assign) BOOL showsUserLocation;
554@property (nonatomic, readonly, getter = isUserLocationVisible) BOOL userLocationVisible;
565@interface BMKMapView (AnnotationAPI)
568@property (nonatomic, copy, readonly, nullable) NSArray<id <BMKAnnotation>> *annotations;
571@property (nonatomic, assign) BOOL isSelectedAnnotationViewFront;
575- (void)addAnnotation:(
id <BMKAnnotation>)annotation;
579- (void)addAnnotations:(NSArray<
id <BMKAnnotation>> *)annotations;
583- (void)removeAnnotation:(
id <BMKAnnotation>)annotation;
587- (void)removeAnnotations:(NSArray<
id <BMKAnnotation> > *)annotations;
597- (nullable
BMKAnnotationView *)dequeueReusableAnnotationViewWithIdentifier:(NSString *)identifier;
602- (void)selectAnnotation:(
id <BMKAnnotation>)annotation animated:(BOOL)animated;
607- (void)deselectAnnotation:(
id <BMKAnnotation>)annotation animated:(BOOL)animated;
613- (void)showAnnotations:(NSArray<
id <BMKAnnotation>> *)annotations animated:(BOOL)animated;
622- (void)showAnnotations:(NSArray<
id <BMKAnnotation>> *)annotations padding:(UIEdgeInsets)padding animated:(BOOL)animated;
626- (nullable NSArray<
id <BMKAnnotation>> *)annotationsInCoordinateBounds:(
BMKCoordinateBounds)bounds;
631@interface BMKMapView (OverlaysAPI)
635- (void)addOverlay:(
id <BMKOverlay>)overlay;
639- (void)addOverlays:(NSArray<
id <BMKOverlay>> *)overlays;
643- (void)removeOverlay:(
id <BMKOverlay>)overlay;
647- (void)removeOverlays:(NSArray<
id <BMKOverlay>> *)overlays;
652- (void)insertOverlay:(
id <BMKOverlay>)overlay atIndex:(NSUInteger)index;
657- (void)exchangeOverlayAtIndex:(NSUInteger)index1 withOverlayAtIndex:(NSUInteger)index2;
662- (void)insertOverlay:(
id <BMKOverlay>)overlay aboveOverlay:(
id <BMKOverlay>)sibling;
667- (void)insertOverlay:(
id <BMKOverlay>)overlay belowOverlay:(
id <BMKOverlay>)sibling;
670@property (nonatomic, copy, readonly, nullable) NSArray<id <BMKOverlay>> *overlays;
675- (nullable
BMKOverlayView *)viewForOverlay:(
id <BMKOverlay>)overlay;
679@interface BMKMapView (HeatMapAPI)
691- (void)removeHeatMap;
694- (void)startHeatMapFrameAnimation;
697- (void)stopHeatMapFrameAnimation;
700- (void)setHeatMapFrameAnimationIndex:(NSInteger)index;
704@interface BMKMapView (HexagonHeatMapAPI)
706@property (nonatomic, assign) BOOL showHexagonHeatMap;
710- (void)removeHexagonHeatMap;
713@interface BMKMapView (MapLayerAPI)
716@property (nonatomic, assign) BOOL showOperateLayer;
718@property (nonatomic, assign) BOOL showOperatePOILayer;
720@property (nonatomic, assign) BOOL showTrafficUGCLayer;
728@property (nonatomic, assign) BOOL showDEMLayer;
733- (BOOL)switchOverlayLayerAndNavigationLayer:(BOOL)isSwitch;
740- (BOOL)switchOverlayLayerAndPOILayer:(BOOL)isSwitch;
749- (void)setPoiTagEnable:(BOOL)enable poiTagType:(
BMKPoiTagType)poiTagType;
752@interface BMKMapView (ParticleEffect)
777@interface BMKMapView (MapStyleAPI)
781- (BOOL)downloadMapStyle:(NSString *)urlString;
786@protocol BMKMapViewDelegate <NSObject>
792- (void)mapViewWillBackground:(
BMKMapView *)mapView;
797- (void)mapViewDidForeground:(
BMKMapView *)mapView;
801- (void)mapViewDidFinishLoading:(
BMKMapView *)mapView;
806- (void)mapViewDidRenderValidData:(
BMKMapView *)mapView withError:(NSError *)error;
810- (void)mapViewDidFinishRendering:(
BMKMapView *)mapView;
820- (void)mapView:(
BMKMapView *)mapView regionWillChangeAnimated:(BOOL)animated;
831- (void)mapView:(
BMKMapView *)mapView regionDidChangeAnimated:(BOOL)animated;
848- (void)mapView:(
BMKMapView *)mapView didAddAnnotationViews:(NSArray *)views;
890- (void)mapView:(
BMKMapView *)mapView didAddOverlayViews:(NSArray *)overlayViews;
905- (void)mapView:(
BMKMapView *)mapView onClickedMapBlank:(CLLocationCoordinate2D)coordinate;
910- (void)mapview:(
BMKMapView *)mapView onDoubleClick:(CLLocationCoordinate2D)coordinate;
915- (void)mapview:(
BMKMapView *)mapView onLongClick:(CLLocationCoordinate2D)coordinate;
922- (void)mapview:(
BMKMapView *)mapView onForceTouch:(CLLocationCoordinate2D)coordinate force:(CGFloat)force maximumPossibleForce:(CGFloat)maximumPossibleForce;
926- (void)mapStatusDidChanged:(
BMKMapView *)mapView;
NSUInteger BMKAnnotationViewDragState
Definition BMKAnnotationView.h:22
BMKSwitchIndoorFloorError
枚举:室内图切换楼层结果
Definition BMKMapView.h:69
@ BMKSwitchIndoorFloorFailed
切换楼层成功
Definition BMKMapView.h:71
@ BMKSwitchIndoorFloorSuccess
Definition BMKMapView.h:70
@ BMKSwitchIndoorFloorNotFocused
切换楼层失败
Definition BMKMapView.h:72
@ BMKSwitchIndoorFloorNotExist
地图还未聚焦到传入的室内图
Definition BMKMapView.h:73
BMKLogoPosition
枚举:logo位置
Definition BMKMapView.h:59
@ BMKLogoPositionCenterTop
地图中下方
Definition BMKMapView.h:63
@ BMKLogoPositionCenterBottom
地图左上方
Definition BMKMapView.h:62
@ BMKLogoPositionRightTop
地图右下方
Definition BMKMapView.h:65
@ BMKLogoPositionLeftBottom
Definition BMKMapView.h:60
@ BMKLogoPositionLeftTop
地图左下方
Definition BMKMapView.h:61
@ BMKLogoPositionRightBottom
地图中上方
Definition BMKMapView.h:64
BMKMapParticleEffect
枚举:粒子效果
Definition BMKMapView.h:89
@ BMKMapParticleEffectSnow
Definition BMKMapView.h:91
@ BMKMapParticleEffectFlower
Definition BMKMapView.h:96
@ BMKMapParticleEffectFireworks
Definition BMKMapView.h:95
@ BMKMapParticleEffectRainStorm
Definition BMKMapView.h:92
@ BMKMapParticleEffectUnknow
Definition BMKMapView.h:90
@ BMKMapParticleEffectSmog
Definition BMKMapView.h:93
@ BMKMapParticleEffectSandStorm
Definition BMKMapView.h:94
BMKUserTrackingMode
Definition BMKMapView.h:51
@ BMKUserTrackingModeNone
Definition BMKMapView.h:52
@ BMKUserTrackingModeFollowWithHeading
定位跟随模式
Definition BMKMapView.h:55
@ BMKUserTrackingModeFollow
定位方向模式
Definition BMKMapView.h:54
@ BMKUserTrackingModeHeading
普通定位模式
Definition BMKMapView.h:53
BMKTrafficUGCType
Definition BMKMapView.h:28
@ BMKTrafficUGCTypeBlocking
道路拥堵
Definition BMKMapView.h:32
@ BMKTrafficUGCTypeNoUGC
Definition BMKMapView.h:29
@ BMKTrafficUGCTypeConstruction
非路况事件
Definition BMKMapView.h:30
@ BMKTrafficUGCTypeEmergency
道路封闭
Definition BMKMapView.h:33
@ BMKTrafficUGCTypeJam
道路施工
Definition BMKMapView.h:31
BMKLayerType
Definition BMKMapView.h:108
@ kBMKLayerSDKHeatMap
SDK覆盖物图层
Definition BMKMapView.h:110
@ kBMKLayerNewSDKDefaultOverlay
SDK蜂窝热力图图层
Definition BMKMapView.h:112
@ kBMKLayerSDKHexagonHeatMap
SDK热力图图层
Definition BMKMapView.h:111
@ kBMKLayerSDKOverlay
Definition BMKMapView.h:109
BMKPoiTagType
用于控制poi标签显示的类别枚举
Definition BMKMapView.h:101
@ kBMKPoiTagTypeShop
店铺标签
Definition BMKMapView.h:105
@ kBMKPoiTagTypeTravel
旅游出行标签
Definition BMKMapView.h:104
@ kBMKPoiTagTypeAll
显示poi标签 / 屏蔽所有poi标签
Definition BMKMapView.h:102
@ kBMKPoiTagTypeEpidemic
疫情标签
Definition BMKMapView.h:103
BMKRegionChangeReason
枚举:地图区域改变原因
Definition BMKMapView.h:77
@ BMKRegionChangeReasonGesture
Definition BMKMapView.h:78
@ BMKRegionChangeReasonAPIs
地图上控件事件,如点击指南针返回2D地图。
Definition BMKMapView.h:80
@ BMKRegionChangeReasonEvent
手势触发导致地图区域变化,如双击、拖拽、滑动地图
Definition BMKMapView.h:79
BMKMapLanguageType
Definition BMKMapView.h:83
@ kBMKMapLanguageTypeChinese
Definition BMKMapView.h:84
@ kBMKMapLanguageTypeEnglish
中文地图
Definition BMKMapView.h:85
Definition BMKAnnotationView.h:43
此类表示室内图基础信息
Definition BMKBaseIndoorMapInfo.h:16
Definition BMKCustomMapStyleOption.h:13
热力图的绘制数据和显示样式类
Definition BMKHeatMap.h:35
蜂窝热力图的绘制数据和显示样式类
Definition BMKHexagonHeatMap.h:32
此类表示定位图层自定义样式参数
Definition BMKLocationViewDisplayParam.h:24
点击地图标注返回数据结构
Definition BMKMapView.h:37
BMKTrafficUGCType trafficUGCType
Poi点路况信息
Definition BMKMapView.h:48
NSString * text
点标注的名称
Definition BMKMapView.h:39
CLLocationCoordinate2D pt
点标注的经纬度坐标
Definition BMKMapView.h:42
NSString * uid
点标注的uid,可能为空
Definition BMKMapView.h:45
此类表示地图状态信息
Definition BMKMapStatus.h:16
Definition BMKMapTouch.h:14
地图View类,使用此View可以显示地图窗口,并且对地图进行相关的操作
Definition BMKMapView.h:118
该类是地图覆盖物View的基类,提供绘制overlay的接口但本身并无实现,所有地图覆盖物View需要继承自此类
Definition BMKOverlayView.h:15
Definition BMKParticleEffectOption.h:15
Definition BMKUserLocation.h:14
表示一个经纬度区域
Definition BMKTypes.h:192
表示一个经纬度区域
Definition BMKTypes.h:199
三维地理坐标点,用空间坐标表示
Definition BMKTypes.h:248
地理坐标点,用直角地理坐标表示
Definition BMKTypes.h:222
矩形,用直角地理坐标表示
Definition BMKTypes.h:278