21NS_ASSUME_NONNULL_BEGIN
25@protocol BMKMapViewDelegate;
31@property (nonatomic, copy, nullable) NSString *
text;
34@property (nonatomic, assign) CLLocationCoordinate2D
pt;
37@property (nonatomic, copy, nullable) NSString *
uid;
79typedef enum : NSInteger {
110@property (nonatomic, weak, nullable) id<BMKMapViewDelegate> delegate;
113@property (nonatomic, weak, nullable) id<BMKMapGestureDelegate> gestureDelegate;
116@property (nonatomic, assign) BMKMapType mapType;
127@property (nonatomic, strong) UIColor *backgroundColor;
132@property (nonatomic, strong) UIImage *backgroundImage;
141@property (nonatomic, assign) CGPoint compassPosition;
144@property (nonatomic, readonly) CGSize compassSize;
147@property (nonatomic, assign) CLLocationCoordinate2D centerCoordinate;
152@property (nonatomic, assign) NSInteger fontSizeLevel;
155@property (nonatomic, assign)
float zoomLevel;
158@property (nonatomic, assign)
float minZoomLevel;
161@property (nonatomic, assign)
float maxZoomLevel;
164@property (nonatomic, assign)
int rotation;
167@property (nonatomic, assign)
int overlooking;
170@property (nonatomic, assign)
int minOverlooking;
173@property(nonatomic, getter = isBuildingsEnabled) BOOL buildingsEnabled;
176@property(nonatomic, assign) BOOL showMapPoi;
179@property(nonatomic, getter = isTrafficEnabled) BOOL trafficEnabled;
182@property(nonatomic, getter = isBaiduHeatMapEnabled) BOOL baiduHeatMapEnabled;
185@property(nonatomic) BOOL gesturesEnabled;
188@property(nonatomic, getter = isZoomEnabled) BOOL zoomEnabled;
191@property(nonatomic, getter = isZoomEnabledWithTap) BOOL zoomEnabledWithTap;
194@property(nonatomic, getter = isScrollEnabled) BOOL scrollEnabled;
197@property(nonatomic, getter = isOverlookEnabled) BOOL overlookEnabled;
200@property(nonatomic, getter = isRotateEnabled) BOOL rotateEnabled;
203@property(nonatomic, assign) BOOL forceTouchEnabled;
206@property(nonatomic, assign) BOOL gestureZoomAnimationEnabled;
209@property (nonatomic, assign) BOOL showMapScaleBar;
212@property (nonatomic, assign) CGPoint mapScaleBarPosition;
215@property (nonatomic, readonly) CGSize mapScaleBarSize;
226@property (nonatomic, assign) UIEdgeInsets mapPadding;
229@property (nonatomic, assign) BOOL updateTargetScreenPtWhenMapPaddingChanged;
235@property(nonatomic, getter = isChangeWithTouchPointCenterEnabled) BOOL ChangeWithTouchPointCenterEnabled;
241@property(nonatomic, getter = isChangeCenterWithDoubleTouchPointEnabled) BOOL ChangeCenterWithDoubleTouchPointEnabled;
244@property(nonatomic, assign) BOOL supportBackgroundDraw;
249+ (void)customMapStyle:(NSString *)customMapStyleJsonFilePath __deprecated_msg("Please use - (
void)setCustomMapStyleEnable:(BOOL)enable");
253+ (void)enableCustomMapStyle:(BOOL)enable __deprecated_msg("Please use - (
void)setCustomMapStylePath:(NSString *)customMapStyleFilePath");
257+ (void)willBackGround __deprecated_msg("废弃方法(空实现),逻辑由地图SDK控制");
261+ (void)didForeGround __deprecated_msg("废弃方法(空实现),逻辑由地图SDK控制");
265+ (BOOL)setBaiduMapSDKMetalEnable:(BOOL)metalEnable;
269+ (BOOL)setBaiduMapSDKOverlayNewVersionEnable:(BOOL)newVersionEnable;
278- (BOOL)setCustomTrafficColorForSmooth:(UIColor *)smooth
280 congestion:(UIColor *)congestion
281 severeCongestion:(UIColor *)severeCongestion;
284- (void)viewWillAppear;
287- (void)viewWillDisappear;
290- (void)cleanCacheWithMapType:(BMKMapType)type;
293- (void)mapForceRefresh;
314- (void)setCenterCoordinate:(CLLocationCoordinate2D)coordinate animated:(BOOL)animated;
320- (nullable UIImage *)takeSnapshot;
326- (nullable UIImage *)takeSnapshot:(CGRect)rect;
330- (void)setCompassImage:(UIImage *)image;
335- (void)setVisibleMapRect:(
BMKMapRect)mapRect animated:(BOOL)animate;
344- (void)setVisibleMapRect:(
BMKMapRect)mapRect edgePadding:(UIEdgeInsets)insets animated:(BOOL)animate;
350- (void)fitVisibleMapRect:(
BMKMapRect)mapRect edgePadding:(UIEdgeInsets)insets withAnimated:(BOOL)animate;
362- (CGPoint)convertCoordinate:(CLLocationCoordinate2D)coordinate toPointToView:(UIView *)view;
368- (CLLocationCoordinate2D)convertPoint:(CGPoint)point toCoordinateFromView:(UIView *)view;
386- (CGRect)convertMapRect:(
BMKMapRect)mapRect toRectToView:(UIView *)view;
392- (
BMKMapRect)convertRect:(CGRect)rect toMapRectFromView:(UIView *)view;
397- (CGPoint)screenPointFromMapPoint3:(
BMKMapPoint3)mapPoint3;
402- (CGPoint)glPointForMapPoint:(
BMKMapPoint)mapPoint;
408- (CGPoint *)glPointsForMapPoints:(
BMKMapPoint *)mapPoints count:(NSUInteger)count;
413- (void)setMapCenterToScreenPt:(CGPoint)ptInScreen;
432- (void)setMapStatus:(
BMKMapStatus *)mapStatus withAnimation:(BOOL)bAnimation;
438- (void)setMapStatus:(
BMKMapStatus *)mapStatus withAnimation:(BOOL)bAnimation withAnimationTime:(
int)ulDuration;
442- (BOOL)isSurpportBaiduHeatMap;
447- (
float *)getProjectionMatrix;
452- (
float *)getViewMatrix;
456@interface BMKMapView (CustomMapAPI)
461- (BOOL)setCustomMapStylePath:(NSString *)customMapStyleFilePath;
467- (BOOL)setCustomMapStylePath:(NSString *)customMapStyleFilePath mode:(
int)mode;
472- (BOOL)setCustomMapStyleEnable:(BOOL)enable;
487 preLoad:(
void (^ _Nullable)(NSString * _Nullable path))preLoad
488 success:(
void (^ _Nullable)(NSString * path))success
489 failure:(
void (^ _Nullable)(NSError * error, NSString * _Nullable path))failure;
494@interface BMKMapView (IndoorMapAPI)
497@property (nonatomic, assign) BOOL baseIndoorMapEnabled;
500@property (nonatomic, assign) BOOL showIndoorMapPoi;
514@interface BMKMapView (LocationViewAPI)
517@property (nonatomic, assign) BOOL showsUserLocation;
523@property (nonatomic, readonly, getter = isUserLocationVisible) BOOL userLocationVisible;
534@interface BMKMapView (AnnotationAPI)
537@property (nonatomic, copy, readonly, nullable) NSArray<id <BMKAnnotation>> *annotations;
540@property (nonatomic, assign) BOOL isSelectedAnnotationViewFront;
544- (void)addAnnotation:(
id <BMKAnnotation>)annotation;
548- (void)addAnnotations:(NSArray<
id <BMKAnnotation>> *)annotations;
552- (void)removeAnnotation:(
id <BMKAnnotation>)annotation;
556- (void)removeAnnotations:(NSArray<
id <BMKAnnotation> > *)annotations;
566- (nullable
BMKAnnotationView *)dequeueReusableAnnotationViewWithIdentifier:(NSString *)identifier;
571- (void)selectAnnotation:(
id <BMKAnnotation>)annotation animated:(BOOL)animated;
576- (void)deselectAnnotation:(
id <BMKAnnotation>)annotation animated:(BOOL)animated;
581- (void)showAnnotations:(NSArray<
id <BMKAnnotation>> *)annotations animated:(BOOL)animated;
589- (void)showAnnotations:(NSArray<
id <BMKAnnotation>> *)annotations padding:(UIEdgeInsets)padding animated:(BOOL)animated;
593- (nullable NSArray<
id <BMKAnnotation>> *)annotationsInCoordinateBounds:(
BMKCoordinateBounds)bounds;
598@interface BMKMapView (OverlaysAPI)
602- (void)addOverlay:(
id <BMKOverlay>)overlay;
606- (void)addOverlays:(NSArray<
id <BMKOverlay>> *)overlays;
610- (void)removeOverlay:(
id <BMKOverlay>)overlay;
614- (void)removeOverlays:(NSArray<
id <BMKOverlay>> *)overlays;
619- (void)insertOverlay:(
id <BMKOverlay>)overlay atIndex:(NSUInteger)index;
624- (void)exchangeOverlayAtIndex:(NSUInteger)index1 withOverlayAtIndex:(NSUInteger)index2;
629- (void)insertOverlay:(
id <BMKOverlay>)overlay aboveOverlay:(
id <BMKOverlay>)sibling;
634- (void)insertOverlay:(
id <BMKOverlay>)overlay belowOverlay:(
id <BMKOverlay>)sibling;
637@property (nonatomic, copy, readonly, nullable) NSArray<id <BMKOverlay>> *overlays;
642- (nullable
BMKOverlayView *)viewForOverlay:(
id <BMKOverlay>)overlay;
646@interface BMKMapView (HeatMapAPI)
658- (void)removeHeatMap;
661- (void)startHeatMapFrameAnimation;
664- (void)stopHeatMapFrameAnimation;
667- (void)setHeatMapFrameAnimationIndex:(NSInteger)index;
671@interface BMKMapView (HexagonHeatMapAPI)
673@property (nonatomic, assign) BOOL showHexagonHeatMap;
677- (void)removeHexagonHeatMap;
680@interface BMKMapView (MapLayerAPI)
683@property (nonatomic, assign) BOOL showOperateLayer;
691@property (nonatomic, assign) BOOL showDEMLayer;
696- (BOOL)switchOverlayLayerAndNavigationLayer:(BOOL)isSwitch;
703- (BOOL)switchOverlayLayerAndPOILayer:(BOOL)isSwitch;
712- (void)setPoiTagEnable:(BOOL)enable poiTagType:(
BMKPoiTagType)poiTagType;
715@interface BMKMapView (ParticleEffect)
741@protocol BMKMapViewDelegate <NSObject>
746- (void)mapViewDidFinishLoading:(
BMKMapView *)mapView;
751- (void)mapViewDidRenderValidData:(
BMKMapView *)mapView withError:(NSError *)error;
755- (void)mapViewDidFinishRendering:(
BMKMapView *)mapView;
765- (void)mapView:(
BMKMapView *)mapView regionWillChangeAnimated:(BOOL)animated;
776- (void)mapView:(
BMKMapView *)mapView regionDidChangeAnimated:(BOOL)animated;
793- (void)mapView:(
BMKMapView *)mapView didAddAnnotationViews:(NSArray *)views;
835- (void)mapView:(
BMKMapView *)mapView didAddOverlayViews:(NSArray *)overlayViews;
850- (void)mapView:(
BMKMapView *)mapView onClickedMapBlank:(CLLocationCoordinate2D)coordinate;
855- (void)mapview:(
BMKMapView *)mapView onDoubleClick:(CLLocationCoordinate2D)coordinate;
860- (void)mapview:(
BMKMapView *)mapView onLongClick:(CLLocationCoordinate2D)coordinate;
867- (void)mapview:(
BMKMapView *)mapView onForceTouch:(CLLocationCoordinate2D)coordinate force:(CGFloat)force maximumPossibleForce:(CGFloat)maximumPossibleForce;
871- (void)mapStatusDidChanged:(
BMKMapView *)mapView;
NSUInteger BMKAnnotationViewDragState
Definition BMKAnnotationView.h:22
BMKSwitchIndoorFloorError
枚举:室内图切换楼层结果
Definition BMKMapView.h:59
@ BMKSwitchIndoorFloorFailed
切换楼层成功
Definition BMKMapView.h:61
@ BMKSwitchIndoorFloorSuccess
Definition BMKMapView.h:60
@ BMKSwitchIndoorFloorNotFocused
切换楼层失败
Definition BMKMapView.h:62
@ BMKSwitchIndoorFloorNotExist
地图还未聚焦到传入的室内图
Definition BMKMapView.h:63
BMKLogoPosition
枚举:logo位置
Definition BMKMapView.h:49
@ BMKLogoPositionCenterTop
地图中下方
Definition BMKMapView.h:53
@ BMKLogoPositionCenterBottom
地图左上方
Definition BMKMapView.h:52
@ BMKLogoPositionRightTop
地图右下方
Definition BMKMapView.h:55
@ BMKLogoPositionLeftBottom
Definition BMKMapView.h:50
@ BMKLogoPositionLeftTop
地图左下方
Definition BMKMapView.h:51
@ BMKLogoPositionRightBottom
地图中上方
Definition BMKMapView.h:54
BMKMapParticleEffect
枚举:粒子效果
Definition BMKMapView.h:79
@ BMKMapParticleEffectSnow
Definition BMKMapView.h:81
@ BMKMapParticleEffectFlower
Definition BMKMapView.h:86
@ BMKMapParticleEffectFireworks
Definition BMKMapView.h:85
@ BMKMapParticleEffectRainStorm
Definition BMKMapView.h:82
@ BMKMapParticleEffectUnknow
Definition BMKMapView.h:80
@ BMKMapParticleEffectSmog
Definition BMKMapView.h:83
@ BMKMapParticleEffectSandStorm
Definition BMKMapView.h:84
BMKUserTrackingMode
Definition BMKMapView.h:41
@ BMKUserTrackingModeNone
Definition BMKMapView.h:42
@ BMKUserTrackingModeFollowWithHeading
定位跟随模式
Definition BMKMapView.h:45
@ BMKUserTrackingModeFollow
定位方向模式
Definition BMKMapView.h:44
@ BMKUserTrackingModeHeading
普通定位模式
Definition BMKMapView.h:43
BMKLayerType
Definition BMKMapView.h:98
@ kBMKLayerSDKHeatMap
SDK覆盖物图层
Definition BMKMapView.h:100
@ kBMKLayerNewSDKDefaultOverlay
SDK蜂窝热力图图层
Definition BMKMapView.h:102
@ kBMKLayerSDKHexagonHeatMap
SDK热力图图层
Definition BMKMapView.h:101
@ kBMKLayerSDKOverlay
Definition BMKMapView.h:99
BMKPoiTagType
用于控制poi标签显示的类别枚举
Definition BMKMapView.h:91
@ kBMKPoiTagTypeShop
店铺标签
Definition BMKMapView.h:95
@ kBMKPoiTagTypeTravel
旅游出行标签
Definition BMKMapView.h:94
@ kBMKPoiTagTypeAll
显示poi标签 / 屏蔽所有poi标签
Definition BMKMapView.h:92
@ kBMKPoiTagTypeEpidemic
疫情标签
Definition BMKMapView.h:93
BMKRegionChangeReason
枚举:地图区域改变原因
Definition BMKMapView.h:67
@ BMKRegionChangeReasonGesture
Definition BMKMapView.h:68
@ BMKRegionChangeReasonAPIs
地图上控件事件,如点击指南针返回2D地图。
Definition BMKMapView.h:70
@ BMKRegionChangeReasonEvent
手势触发导致地图区域变化,如双击、拖拽、滑动地图
Definition BMKMapView.h:69
BMKMapLanguageType
Definition BMKMapView.h:73
@ kBMKMapLanguageTypeChinese
Definition BMKMapView.h:74
@ kBMKMapLanguageTypeEnglish
中文地图
Definition BMKMapView.h:75
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:29
NSString * text
点标注的名称
Definition BMKMapView.h:31
CLLocationCoordinate2D pt
点标注的经纬度坐标
Definition BMKMapView.h:34
NSString * uid
点标注的uid,可能为空
Definition BMKMapView.h:37
此类表示地图状态信息
Definition BMKMapStatus.h:16
地图View类,使用此View可以显示地图窗口,并且对地图进行相关的操作
Definition BMKMapView.h:108
该类是地图覆盖物View的基类,提供绘制overlay的接口但本身并无实现,所有地图覆盖物View需要继承自此类
Definition BMKOverlayView.h:15
Definition BMKParticleEffectOption.h:15
Definition BMKUserLocation.h:14
表示一个经纬度区域
Definition BMKTypes.h:159
表示一个经纬度区域
Definition BMKTypes.h:166
三维地理坐标点,用空间坐标表示
Definition BMKTypes.h:203
地理坐标点,用直角地理坐标表示
Definition BMKTypes.h:189
矩形,用直角地理坐标表示
Definition BMKTypes.h:233