9#import "BMKAnnotation.h"
10#import "BMKAnnotationView.h"
11#import "BMKOverlayView.h"
12#import "BMKMapStatus.h"
13#import "BMKLocationViewDisplayParam.h"
15#import "BMKBaseIndoorMapInfo.h"
16#import "BMKCustomMapStyleOption.h"
17#import "BMKMapGestureDelegate.h"
18#import "BMKParticleEffectOption.h"
20NS_ASSUME_NONNULL_BEGIN
30@property (nonatomic, copy, nullable) NSString *
text;
33@property (nonatomic, assign) CLLocationCoordinate2D
pt;
36@property (nonatomic, copy, nullable) NSString *
uid;
41 BMKUserTrackingModeNone = 0,
42 BMKUserTrackingModeHeading,
43 BMKUserTrackingModeFollow,
44 BMKUserTrackingModeFollowWithHeading,
49 BMKLogoPositionLeftBottom = 0,
50 BMKLogoPositionLeftTop,
51 BMKLogoPositionCenterBottom,
52 BMKLogoPositionCenterTop,
53 BMKLogoPositionRightBottom,
54 BMKLogoPositionRightTop,
59 BMKSwitchIndoorFloorSuccess = 0,
60 BMKSwitchIndoorFloorFailed,
61 BMKSwitchIndoorFloorNotFocused,
62 BMKSwitchIndoorFloorNotExist,
63} BMKSwitchIndoorFloorError;
67 BMKRegionChangeReasonGesture = 0,
68 BMKRegionChangeReasonEvent,
69 BMKRegionChangeReasonAPIs,
70} BMKRegionChangeReason;
73 kBMKMapLanguageTypeChinese = 0,
74 kBMKMapLanguageTypeEnglish
78typedef enum : NSInteger {
79 BMKMapParticleEffectUnknow = -1,
80 BMKMapParticleEffectSnow = 0,
81 BMKMapParticleEffectRainStorm = 4,
82 BMKMapParticleEffectSmog = 5,
83 BMKMapParticleEffectSandStorm = 7,
84 BMKMapParticleEffectFireworks = 8,
85 BMKMapParticleEffectFlower = 9
86} BMKMapParticleEffect;
92 kBMKPoiTagTypeEpidemic,
100 kBMKLayerNewSDKDefaultOverlay
108@property (nonatomic, weak, nullable) id<BMKMapViewDelegate> delegate;
111@property (nonatomic, weak, nullable) id<BMKMapGestureDelegate> gestureDelegate;
114@property (nonatomic, assign) BMKMapType mapType;
120@property (nonatomic, assign) BMKMapLanguageType languageType;
124@property (nonatomic, strong) UIColor *backgroundColor;
129@property (nonatomic, strong) UIImage *backgroundImage;
138@property (nonatomic, assign) CGPoint compassPosition;
141@property (nonatomic, readonly) CGSize compassSize;
144@property (nonatomic, assign) CLLocationCoordinate2D centerCoordinate;
149@property (nonatomic, assign) NSInteger fontSizeLevel;
152@property (nonatomic, assign)
float zoomLevel;
155@property (nonatomic, assign)
float minZoomLevel;
158@property (nonatomic, assign)
float maxZoomLevel;
161@property (nonatomic, assign)
int rotation;
164@property (nonatomic, assign)
int overlooking;
167@property (nonatomic, assign)
int minOverlooking;
170@property(nonatomic, getter = isBuildingsEnabled) BOOL buildingsEnabled;
173@property(nonatomic, assign) BOOL showMapPoi;
176@property(nonatomic, getter = isTrafficEnabled) BOOL trafficEnabled;
179@property(nonatomic, getter = isBaiduHeatMapEnabled) BOOL baiduHeatMapEnabled;
182@property(nonatomic) BOOL gesturesEnabled;
185@property(nonatomic, getter = isZoomEnabled) BOOL zoomEnabled;
188@property(nonatomic, getter = isZoomEnabledWithTap) BOOL zoomEnabledWithTap;
191@property(nonatomic, getter = isScrollEnabled) BOOL scrollEnabled;
194@property(nonatomic, getter = isOverlookEnabled) BOOL overlookEnabled;
197@property(nonatomic, getter = isRotateEnabled) BOOL rotateEnabled;
200@property(nonatomic, assign) BOOL forceTouchEnabled;
203@property(nonatomic, assign) BOOL gestureZoomAnimationEnabled;
206@property (nonatomic, assign) BOOL showMapScaleBar;
209@property (nonatomic, assign) CGPoint mapScaleBarPosition;
212@property (nonatomic, readonly) CGSize mapScaleBarSize;
215@property (nonatomic, assign) BMKLogoPosition logoPosition;
223@property (nonatomic, assign) UIEdgeInsets mapPadding;
226@property (nonatomic, assign) BOOL updateTargetScreenPtWhenMapPaddingChanged;
232@property(nonatomic, getter = isChangeWithTouchPointCenterEnabled) BOOL ChangeWithTouchPointCenterEnabled;
238@property(nonatomic, getter = isChangeCenterWithDoubleTouchPointEnabled) BOOL ChangeCenterWithDoubleTouchPointEnabled;
243+ (void)customMapStyle:(NSString *)customMapStyleJsonFilePath __deprecated_msg("Please use - (
void)setCustomMapStyleEnable:(BOOL)enable");
247+ (void)enableCustomMapStyle:(BOOL)enable __deprecated_msg("Please use - (
void)setCustomMapStylePath:(NSString *)customMapStyleFilePath");
251+ (void)willBackGround __deprecated_msg("废弃方法(空实现),逻辑由地图SDK控制");
255+ (void)didForeGround __deprecated_msg("废弃方法(空实现),逻辑由地图SDK控制");
259+ (BOOL)setBaiduMapSDKMetalEnable:(BOOL)metalEnable;
263+ (BOOL)setBaiduMapSDKOverlayNewVersionEnable:(BOOL)newVersionEnable;
272- (BOOL)setCustomTrafficColorForSmooth:(UIColor *)smooth
274 congestion:(UIColor *)congestion
275 severeCongestion:(UIColor *)severeCongestion;
278- (void)viewWillAppear;
281- (void)viewWillDisappear;
284- (void)cleanCacheWithMapType:(BMKMapType)type;
287- (void)mapForceRefresh;
308- (void)setCenterCoordinate:(CLLocationCoordinate2D)coordinate animated:(BOOL)animated;
314- (nullable UIImage *)takeSnapshot;
320- (nullable UIImage *)takeSnapshot:(CGRect)rect;
324- (void)setCompassImage:(UIImage *)image;
329- (void)setVisibleMapRect:(
BMKMapRect)mapRect animated:(BOOL)animate;
338- (void)setVisibleMapRect:(
BMKMapRect)mapRect edgePadding:(UIEdgeInsets)insets animated:(BOOL)animate;
344- (void)fitVisibleMapRect:(
BMKMapRect)mapRect edgePadding:(UIEdgeInsets)insets withAnimated:(BOOL)animate;
356- (CGPoint)convertCoordinate:(CLLocationCoordinate2D)coordinate toPointToView:(UIView *)view;
362- (CLLocationCoordinate2D)convertPoint:(CGPoint)point toCoordinateFromView:(UIView *)view;
380- (CGRect)convertMapRect:(
BMKMapRect)mapRect toRectToView:(UIView *)view;
386- (
BMKMapRect)convertRect:(CGRect)rect toMapRectFromView:(UIView *)view;
391- (CGPoint)screenPointFromMapPoint3:(
BMKMapPoint3)mapPoint3;
396- (CGPoint)glPointForMapPoint:(
BMKMapPoint)mapPoint;
402- (CGPoint *)glPointsForMapPoints:(
BMKMapPoint *)mapPoints count:(NSUInteger)count;
407- (void)setMapCenterToScreenPt:(CGPoint)ptInScreen;
426- (void)setMapStatus:(
BMKMapStatus *)mapStatus withAnimation:(BOOL)bAnimation;
432- (void)setMapStatus:(
BMKMapStatus *)mapStatus withAnimation:(BOOL)bAnimation withAnimationTime:(
int)ulDuration;
436- (BOOL)isSurpportBaiduHeatMap;
441- (
float *)getProjectionMatrix;
446- (
float *)getViewMatrix;
455- (void)setCustomMapStylePath:(NSString *)customMapStyleFilePath;
461- (void)setCustomMapStylePath:(NSString *)customMapStyleFilePath mode:(
int)mode;
466- (void)setCustomMapStyleEnable:(BOOL)enable;
481 preLoad:(
void (^ _Nullable)(NSString * _Nullable path))preLoad
482 success:(
void (^ _Nullable)(NSString * path))success
483 failure:(
void (^ _Nullable)(NSError * error, NSString * _Nullable path))failure;
491@property (nonatomic, assign) BOOL baseIndoorMapEnabled;
494@property (nonatomic, assign) BOOL showIndoorMapPoi;
500- (BMKSwitchIndoorFloorError)switchBaseIndoorMapFloor:(NSString *)strFloor withID:(NSString *)strID;
511@property (nonatomic, assign) BOOL showsUserLocation;
514@property (nonatomic, assign) BMKUserTrackingMode userTrackingMode;
517@property (nonatomic, readonly, getter = isUserLocationVisible) BOOL userLocationVisible;
531@property (nonatomic, copy, readonly, nullable) NSArray<id <BMKAnnotation>> *annotations;
534@property (nonatomic, assign) BOOL isSelectedAnnotationViewFront;
542- (void)addAnnotations:(NSArray<
id <
BMKAnnotation>> *)annotations;
550- (void)removeAnnotations:(NSArray<
id <
BMKAnnotation> > *)annotations;
560- (nullable
BMKAnnotationView *)dequeueReusableAnnotationViewWithIdentifier:(NSString *)identifier;
565- (void)selectAnnotation:(
id <
BMKAnnotation>)annotation animated:(BOOL)animated;
570- (void)deselectAnnotation:(
id <
BMKAnnotation>)annotation animated:(BOOL)animated;
575- (void)showAnnotations:(NSArray<
id <
BMKAnnotation>> *)annotations animated:(BOOL)animated;
583- (void)showAnnotations:(NSArray<
id <
BMKAnnotation>> *)annotations padding:(UIEdgeInsets)padding animated:(BOOL)animated;
600- (void)addOverlays:(NSArray<
id <
BMKOverlay>> *)overlays;
604- (void)removeOverlay:(
id <
BMKOverlay>)overlay;
608- (void)removeOverlays:(NSArray<
id <
BMKOverlay>> *)overlays;
613- (void)insertOverlay:(
id <
BMKOverlay>)overlay atIndex:(NSUInteger)index;
618- (void)exchangeOverlayAtIndex:(NSUInteger)index1 withOverlayAtIndex:(NSUInteger)index2;
631@property (nonatomic, copy, readonly, nullable) NSArray<id <BMKOverlay>> *overlays;
652- (void)removeHeatMap;
655- (void)startHeatMapFrameAnimation;
658- (void)stopHeatMapFrameAnimation;
661- (void)setHeatMapFrameAnimationIndex:(NSInteger)index;
668@property (nonatomic, assign) BOOL showOperateLayer;
673- (BOOL)switchLayerOrder:(BMKLayerType)layer otherLayer:(BMKLayerType)otherLayer;
676@property (nonatomic, assign) BOOL showDEMLayer;
681- (BOOL)switchOverlayLayerAndNavigationLayer:(BOOL)isSwitch;
688- (BOOL)switchOverlayLayerAndPOILayer:(BOOL)isSwitch;
692- (BOOL)getPoiTagEnable:(BMKPoiTagType)poiTagType;
697- (void)setPoiTagEnable:(BOOL)enable poiTagType:(BMKPoiTagType)poiTagType;
707- (BOOL)showParticleEffect:(BMKMapParticleEffect)effect;
714- (void)closeParticleEffect:(BMKMapParticleEffect)effect;
731- (void)mapViewDidFinishLoading:(
BMKMapView *)mapView;
736- (void)mapViewDidRenderValidData:(
BMKMapView *)mapView withError:(NSError *)error;
740- (void)mapViewDidFinishRendering:(
BMKMapView *)mapView;
750- (void)mapView:(
BMKMapView *)mapView regionWillChangeAnimated:(BOOL)animated;
756- (void)mapView:(
BMKMapView *)mapView regionWillChangeAnimated:(BOOL)animated reason:(BMKRegionChangeReason)reason;
761- (void)mapView:(
BMKMapView *)mapView regionDidChangeAnimated:(BOOL)animated;
767- (void)mapView:(
BMKMapView *)mapView regionDidChangeAnimated:(BOOL)animated reason:(BMKRegionChangeReason)reason;
778- (void)mapView:(
BMKMapView *)mapView didAddAnnotationViews:(NSArray *)views;
803- (void)mapView:(
BMKMapView *)mapView annotationView:(
BMKAnnotationView *)view didChangeDragState:(BMKAnnotationViewDragState)newState
804 fromOldState:(BMKAnnotationViewDragState)oldState;
820- (void)mapView:(
BMKMapView *)mapView didAddOverlayViews:(NSArray *)overlayViews;
836- (void)mapView:(
BMKMapView *)mapView onClickedMapBlank:(CLLocationCoordinate2D)coordinate;
841- (void)mapview:(
BMKMapView *)mapView onDoubleClick:(CLLocationCoordinate2D)coordinate;
846- (void)mapview:(
BMKMapView *)mapView onLongClick:(CLLocationCoordinate2D)coordinate;
853- (void)mapview:(
BMKMapView *)mapView onForceTouch:(CLLocationCoordinate2D)coordinate force:(CGFloat)force maximumPossibleForce:(CGFloat)maximumPossibleForce;
857- (void)mapStatusDidChanged:(
BMKMapView *)mapView;
868- (void)mapView:(
BMKMapView *)mapView didChangeUserTrackingMode:(BMKUserTrackingMode)mode;
Definition: BMKMapView.h:528
Definition: BMKMapView.h:450
Definition: BMKMapView.h:640
Definition: BMKMapView.h:488
Definition: BMKMapView.h:508
Definition: BMKMapView.h:665
地图View类(和Overlay操作相关的接口)
Definition: BMKMapView.h:592
Definition: BMKMapView.h:700
Definition: BMKAnnotationView.h:43
此类表示室内图基础信息
Definition: BMKBaseIndoorMapInfo.h:16
Definition: BMKCustomMapStyleOption.h:13
热力图的绘制数据和显示样式类
Definition: BMKHeatMap.h:35
此类表示定位图层自定义样式参数
Definition: BMKLocationViewDisplayParam.h:24
点击地图标注返回数据结构
Definition: BMKMapView.h:28
NSString * text
点标注的名称
Definition: BMKMapView.h:30
CLLocationCoordinate2D pt
点标注的经纬度坐标
Definition: BMKMapView.h:33
NSString * uid
点标注的uid,可能为空
Definition: BMKMapView.h:36
此类表示地图状态信息
Definition: BMKMapStatus.h:16
地图View类,使用此View可以显示地图窗口,并且对地图进行相关的操作
Definition: BMKMapView.h:106
该类是地图覆盖物View的基类,提供绘制overlay的接口但本身并无实现,所有地图覆盖物View需要继承自此类
Definition: BMKOverlayView.h:15
Definition: BMKParticleEffectOption.h:15
Definition: BMKUserLocation.h:14
该类为标注点的protocol,提供了标注类的基本信息函数
Definition: BMKAnnotation.h:12
MapView的Delegate,mapView通过此类来通知用户对应的事件
Definition: BMKMapView.h:726
该类是地图覆盖物的基类,所有地图的覆盖物需要继承自此类
Definition: BMKOverlay.h:17
表示一个经纬度区域
Definition: BMKTypes.h:157
表示一个经纬度区域
Definition: BMKTypes.h:164
三维地理坐标点,用空间坐标表示
Definition: BMKTypes.h:201
地理坐标点,用直角地理坐标表示
Definition: BMKTypes.h:187
矩形,用直角地理坐标表示
Definition: BMKTypes.h:231