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, getter = isZoomEnabled) BOOL zoomEnabled;
204@property(nonatomic, getter = isZoomEnabledWithTap) BOOL zoomEnabledWithTap;
207@property(nonatomic, getter = isScrollEnabled) BOOL scrollEnabled;
210@property(nonatomic, getter = isOverlookEnabled) BOOL overlookEnabled;
213@property(nonatomic, getter = isRotateEnabled) BOOL rotateEnabled;
216@property(nonatomic, assign) BOOL forceTouchEnabled;
219@property(nonatomic, assign) BOOL gestureZoomAnimationEnabled;
222@property (nonatomic, assign) BOOL showMapScaleBar;
225@property (nonatomic, assign) CGPoint mapScaleBarPosition;
228@property (nonatomic, readonly) CGSize mapScaleBarSize;
239@property (nonatomic, assign) UIEdgeInsets mapPadding;
242@property (nonatomic, assign) BOOL updateTargetScreenPtWhenMapPaddingChanged;
248@property(nonatomic, getter = isChangeWithTouchPointCenterEnabled) BOOL ChangeWithTouchPointCenterEnabled;
254@property(nonatomic, getter = isChangeCenterWithDoubleTouchPointEnabled) BOOL ChangeCenterWithDoubleTouchPointEnabled;
257@property(nonatomic, assign) BOOL supportBackgroundDraw;
262+ (void)customMapStyle:(NSString *)customMapStyleJsonFilePath __deprecated_msg("Please use - (
void)setCustomMapStyleEnable:(BOOL)enable");
266+ (void)enableCustomMapStyle:(BOOL)enable __deprecated_msg("Please use - (
void)setCustomMapStylePath:(NSString *)customMapStyleFilePath");
270+ (void)willBackGround __deprecated_msg("废弃方法(空实现),逻辑由地图SDK控制");
274+ (void)didForeGround __deprecated_msg("废弃方法(空实现),逻辑由地图SDK控制");
278+ (BOOL)setBaiduMapSDKMetalEnable:(BOOL)metalEnable;
282+ (BOOL)getBaiduMapSDKMetalEnable;
286+ (BOOL)setBaiduMapSDKOverlayNewVersionEnable:(BOOL)newVersionEnable;
290+ (BOOL)getBaiduMapSDKOverlayNewVersionEnable;
298- (BOOL)setCustomTrafficColorForSmooth:(UIColor *)smooth
300 congestion:(UIColor *)congestion
301 severeCongestion:(UIColor *)severeCongestion;
304- (void)viewWillAppear;
307- (void)viewWillDisappear;
310- (void)cleanCacheWithMapType:(BMKMapType)type;
313- (void)mapForceRefresh;
334- (void)setCenterCoordinate:(CLLocationCoordinate2D)coordinate animated:(BOOL)animated;
340- (nullable UIImage *)takeSnapshot;
346- (nullable UIImage *)takeSnapshot:(CGRect)rect;
350- (void)setCompassImage:(UIImage *)image;
355- (void)setVisibleMapRect:(
BMKMapRect)mapRect animated:(BOOL)animate;
364- (void)setVisibleMapRect:(
BMKMapRect)mapRect edgePadding:(UIEdgeInsets)insets animated:(BOOL)animate;
370- (void)fitVisibleMapRect:(
BMKMapRect)mapRect edgePadding:(UIEdgeInsets)insets withAnimated:(BOOL)animate;
382- (CGPoint)convertCoordinate:(CLLocationCoordinate2D)coordinate toPointToView:(UIView *)view;
388- (CLLocationCoordinate2D)convertPoint:(CGPoint)point toCoordinateFromView:(UIView *)view;
406- (CGRect)convertMapRect:(
BMKMapRect)mapRect toRectToView:(UIView *)view;
412- (
BMKMapRect)convertRect:(CGRect)rect toMapRectFromView:(UIView *)view;
417- (CGPoint)screenPointFromMapPoint3:(
BMKMapPoint3)mapPoint3;
422- (CGPoint)glPointForMapPoint:(
BMKMapPoint)mapPoint;
428- (CGPoint *)glPointsForMapPoints:(
BMKMapPoint *)mapPoints count:(NSUInteger)count;
433- (void)setMapCenterToScreenPt:(CGPoint)ptInScreen;
452- (void)setMapStatus:(
BMKMapStatus *)mapStatus withAnimation:(BOOL)bAnimation;
458- (void)setMapStatus:(
BMKMapStatus *)mapStatus withAnimation:(BOOL)bAnimation withAnimationTime:(
int)ulDuration;
462- (BOOL)isSurpportBaiduHeatMap;
467- (
float *)getProjectionMatrix;
472- (
float *)getViewMatrix;
475- (void)touchesBegan:(NSSet<
BMKMapTouch *> *)touches;
476- (void)touchesMoved:(NSSet<
BMKMapTouch *> *)touches;
477- (void)touchesEnded:(NSSet<
BMKMapTouch *> *)touches;
478- (void)touchesCancelled:(NSSet<
BMKMapTouch *> *)touches;
481@interface BMKMapView (CustomMapAPI)
486- (BOOL)setCustomMapStylePath:(NSString *)customMapStyleFilePath;
492- (BOOL)setCustomMapStylePath:(NSString *)customMapStyleFilePath mode:(
int)mode;
497- (BOOL)setCustomMapStyleEnable:(BOOL)enable;
512 preLoad:(
void (^ _Nullable)(NSString * _Nullable path))preLoad
513 success:(
void (^ _Nullable)(NSString * path))success
514 failure:(
void (^ _Nullable)(NSError * error, NSString * _Nullable path))failure;
519@interface BMKMapView (IndoorMapAPI)
522@property (nonatomic, assign) BOOL baseIndoorMapEnabled;
525@property (nonatomic, assign) BOOL showIndoorMapPoi;
539@interface BMKMapView (LocationViewAPI)
542@property (nonatomic, assign) BOOL showsUserLocation;
548@property (nonatomic, readonly, getter = isUserLocationVisible) BOOL userLocationVisible;
559@interface BMKMapView (AnnotationAPI)
562@property (nonatomic, copy, readonly, nullable) NSArray<id <BMKAnnotation>> *annotations;
565@property (nonatomic, assign) BOOL isSelectedAnnotationViewFront;
569- (void)addAnnotation:(
id <BMKAnnotation>)annotation;
573- (void)addAnnotations:(NSArray<
id <BMKAnnotation>> *)annotations;
577- (void)removeAnnotation:(
id <BMKAnnotation>)annotation;
581- (void)removeAnnotations:(NSArray<
id <BMKAnnotation> > *)annotations;
591- (nullable
BMKAnnotationView *)dequeueReusableAnnotationViewWithIdentifier:(NSString *)identifier;
596- (void)selectAnnotation:(
id <BMKAnnotation>)annotation animated:(BOOL)animated;
601- (void)deselectAnnotation:(
id <BMKAnnotation>)annotation animated:(BOOL)animated;
607- (void)showAnnotations:(NSArray<
id <BMKAnnotation>> *)annotations animated:(BOOL)animated;
616- (void)showAnnotations:(NSArray<
id <BMKAnnotation>> *)annotations padding:(UIEdgeInsets)padding animated:(BOOL)animated;
620- (nullable NSArray<
id <BMKAnnotation>> *)annotationsInCoordinateBounds:(
BMKCoordinateBounds)bounds;
625@interface BMKMapView (OverlaysAPI)
629- (void)addOverlay:(
id <BMKOverlay>)overlay;
633- (void)addOverlays:(NSArray<
id <BMKOverlay>> *)overlays;
637- (void)removeOverlay:(
id <BMKOverlay>)overlay;
641- (void)removeOverlays:(NSArray<
id <BMKOverlay>> *)overlays;
646- (void)insertOverlay:(
id <BMKOverlay>)overlay atIndex:(NSUInteger)index;
651- (void)exchangeOverlayAtIndex:(NSUInteger)index1 withOverlayAtIndex:(NSUInteger)index2;
656- (void)insertOverlay:(
id <BMKOverlay>)overlay aboveOverlay:(
id <BMKOverlay>)sibling;
661- (void)insertOverlay:(
id <BMKOverlay>)overlay belowOverlay:(
id <BMKOverlay>)sibling;
664@property (nonatomic, copy, readonly, nullable) NSArray<id <BMKOverlay>> *overlays;
669- (nullable
BMKOverlayView *)viewForOverlay:(
id <BMKOverlay>)overlay;
673@interface BMKMapView (HeatMapAPI)
685- (void)removeHeatMap;
688- (void)startHeatMapFrameAnimation;
691- (void)stopHeatMapFrameAnimation;
694- (void)setHeatMapFrameAnimationIndex:(NSInteger)index;
698@interface BMKMapView (HexagonHeatMapAPI)
700@property (nonatomic, assign) BOOL showHexagonHeatMap;
704- (void)removeHexagonHeatMap;
707@interface BMKMapView (MapLayerAPI)
710@property (nonatomic, assign) BOOL showOperateLayer;
712@property (nonatomic, assign) BOOL showOperatePOILayer;
714@property (nonatomic, assign) BOOL showTrafficUGCLayer;
722@property (nonatomic, assign) BOOL showDEMLayer;
727- (BOOL)switchOverlayLayerAndNavigationLayer:(BOOL)isSwitch;
734- (BOOL)switchOverlayLayerAndPOILayer:(BOOL)isSwitch;
743- (void)setPoiTagEnable:(BOOL)enable poiTagType:(
BMKPoiTagType)poiTagType;
746@interface BMKMapView (ParticleEffect)
772@protocol BMKMapViewDelegate <NSObject>
778- (void)mapViewWillBackground:(
BMKMapView *)mapView;
783- (void)mapViewDidForeground:(
BMKMapView *)mapView;
787- (void)mapViewDidFinishLoading:(
BMKMapView *)mapView;
792- (void)mapViewDidRenderValidData:(
BMKMapView *)mapView withError:(NSError *)error;
796- (void)mapViewDidFinishRendering:(
BMKMapView *)mapView;
806- (void)mapView:(
BMKMapView *)mapView regionWillChangeAnimated:(BOOL)animated;
817- (void)mapView:(
BMKMapView *)mapView regionDidChangeAnimated:(BOOL)animated;
834- (void)mapView:(
BMKMapView *)mapView didAddAnnotationViews:(NSArray *)views;
876- (void)mapView:(
BMKMapView *)mapView didAddOverlayViews:(NSArray *)overlayViews;
891- (void)mapView:(
BMKMapView *)mapView onClickedMapBlank:(CLLocationCoordinate2D)coordinate;
896- (void)mapview:(
BMKMapView *)mapView onDoubleClick:(CLLocationCoordinate2D)coordinate;
901- (void)mapview:(
BMKMapView *)mapView onLongClick:(CLLocationCoordinate2D)coordinate;
908- (void)mapview:(
BMKMapView *)mapView onForceTouch:(CLLocationCoordinate2D)coordinate force:(CGFloat)force maximumPossibleForce:(CGFloat)maximumPossibleForce;
912- (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