21 NS_ASSUME_NONNULL_BEGIN
23 @class CompassOverlay;
38 @property (nonatomic, copy, nullable) NSString *
text;
41 @property (nonatomic, assign) CLLocationCoordinate2D
pt;
44 @property (nonatomic, copy, nullable) NSString *
uid;
88 typedef enum : NSInteger {
119 @property (nonatomic, weak, nullable) id<BMKMapViewDelegate> delegate;
122 @property (nonatomic, weak, nullable) id<BMKMapGestureDelegate> gestureDelegate;
125 @property (nonatomic, assign) BMKMapType mapType;
137 @property (nonatomic, strong) UIColor *backgroundColor;
142 @property (nonatomic, strong) UIImage *backgroundImage;
151 @property (nonatomic, assign) CGPoint compassPosition;
154 @property (nonatomic, readonly) CGSize compassSize;
157 @property (nonatomic, assign) CLLocationCoordinate2D centerCoordinate;
162 @property (nonatomic, assign) NSInteger fontSizeLevel;
165 @property (nonatomic, assign)
float zoomLevel;
168 @property (nonatomic, assign)
float minZoomLevel;
171 @property (nonatomic, assign)
float maxZoomLevel;
174 @property (nonatomic, assign)
int rotation;
177 @property (nonatomic, assign)
int overlooking;
180 @property (nonatomic, assign)
int minOverlooking;
183 @property(nonatomic, getter = isBuildingsEnabled) BOOL buildingsEnabled;
186 @property(nonatomic, assign) BOOL showMapPoi;
189 @property(nonatomic, getter = isTrafficEnabled) BOOL trafficEnabled;
191 @property(nonatomic, getter = isCustomTrafficColorEnabled) BOOL customTrafficColorEnabled;
194 @property(nonatomic, getter = isBaiduHeatMapEnabled) BOOL baiduHeatMapEnabled;
197 @property(nonatomic) BOOL gesturesEnabled;
200 @property(nonatomic, getter = isZoomEnabled) BOOL zoomEnabled;
203 @property(nonatomic, getter = isZoomEnabledWithTap) BOOL zoomEnabledWithTap;
206 @property(nonatomic, getter = isScrollEnabled) BOOL scrollEnabled;
209 @property(nonatomic, getter = isOverlookEnabled) BOOL overlookEnabled;
212 @property(nonatomic, getter = isRotateEnabled) BOOL rotateEnabled;
215 @property(nonatomic, assign) BOOL forceTouchEnabled;
218 @property(nonatomic, assign) BOOL gestureZoomAnimationEnabled;
221 @property (nonatomic, assign) BOOL showMapScaleBar;
224 @property (nonatomic, assign) CGPoint mapScaleBarPosition;
227 @property (nonatomic, readonly) CGSize mapScaleBarSize;
238 @property (nonatomic, assign) UIEdgeInsets mapPadding;
241 @property (nonatomic, assign) BOOL updateTargetScreenPtWhenMapPaddingChanged;
247 @property(nonatomic, getter = isChangeWithTouchPointCenterEnabled) BOOL ChangeWithTouchPointCenterEnabled;
253 @property(nonatomic, getter = isChangeCenterWithDoubleTouchPointEnabled) BOOL ChangeCenterWithDoubleTouchPointEnabled;
256 @property(nonatomic, assign) BOOL supportBackgroundDraw;
261 + (void)customMapStyle:(NSString *)customMapStyleJsonFilePath __deprecated_msg("Please use - (
void)setCustomMapStyleEnable:(BOOL)enable");
265 + (void)enableCustomMapStyle:(BOOL)enable __deprecated_msg("Please use - (
void)setCustomMapStylePath:(NSString *)customMapStyleFilePath");
269 + (void)willBackGround __deprecated_msg("废弃方法(空实现),逻辑由地图SDK控制");
273 + (void)didForeGround __deprecated_msg("废弃方法(空实现),逻辑由地图SDK控制");
277 + (BOOL)setBaiduMapSDKMetalEnable:(BOOL)metalEnable;
281 + (BOOL)getBaiduMapSDKMetalEnable;
285 + (BOOL)setBaiduMapSDKOverlayNewVersionEnable:(BOOL)newVersionEnable;
289 + (BOOL)getBaiduMapSDKOverlayNewVersionEnable;
297 - (BOOL)setCustomTrafficColorForSmooth:(UIColor *)smooth
299 congestion:(UIColor *)congestion
300 severeCongestion:(UIColor *)severeCongestion;
303 - (void)viewWillAppear;
306 - (void)viewWillDisappear;
309 - (void)cleanCacheWithMapType:(BMKMapType)type;
312 - (void)mapForceRefresh;
333 - (void)setCenterCoordinate:(CLLocationCoordinate2D)coordinate animated:(BOOL)animated;
339 - (nullable UIImage *)takeSnapshot;
345 - (nullable UIImage *)takeSnapshot:(CGRect)rect;
349 - (void)setCompassImage:(UIImage *)image;
354 - (void)setVisibleMapRect:(
BMKMapRect)mapRect animated:(BOOL)animate;
363 - (void)setVisibleMapRect:(
BMKMapRect)mapRect edgePadding:(UIEdgeInsets)insets animated:(BOOL)animate;
369 - (void)fitVisibleMapRect:(
BMKMapRect)mapRect edgePadding:(UIEdgeInsets)insets withAnimated:(BOOL)animate;
381 - (CGPoint)convertCoordinate:(CLLocationCoordinate2D)coordinate toPointToView:(UIView *)view;
387 - (CLLocationCoordinate2D)convertPoint:(CGPoint)point toCoordinateFromView:(UIView *)view;
405 - (CGRect)convertMapRect:(
BMKMapRect)mapRect toRectToView:(UIView *)view;
411 - (
BMKMapRect)convertRect:(CGRect)rect toMapRectFromView:(UIView *)view;
416 - (CGPoint)screenPointFromMapPoint3:(
BMKMapPoint3)mapPoint3;
421 - (CGPoint)glPointForMapPoint:(
BMKMapPoint)mapPoint;
427 - (CGPoint *)glPointsForMapPoints:(
BMKMapPoint *)mapPoints count:(NSUInteger)count;
432 - (void)setMapCenterToScreenPt:(CGPoint)ptInScreen;
451 - (void)setMapStatus:(
BMKMapStatus *)mapStatus withAnimation:(BOOL)bAnimation;
457 - (void)setMapStatus:(
BMKMapStatus *)mapStatus withAnimation:(BOOL)bAnimation withAnimationTime:(
int)ulDuration;
461 - (BOOL)isSurpportBaiduHeatMap;
466 - (
float *)getProjectionMatrix;
471 - (
float *)getViewMatrix;
480 - (BOOL)setCustomMapStylePath:(NSString *)customMapStyleFilePath;
486 - (BOOL)setCustomMapStylePath:(NSString *)customMapStyleFilePath mode:(
int)mode;
491 - (BOOL)setCustomMapStyleEnable:(BOOL)enable;
506 preLoad:(
void (^ _Nullable)(NSString * _Nullable path))preLoad
507 success:(
void (^ _Nullable)(NSString * path))success
508 failure:(
void (^ _Nullable)(NSError * error, NSString * _Nullable path))failure;
516 @property (nonatomic, assign) BOOL baseIndoorMapEnabled;
519 @property (nonatomic, assign) BOOL showIndoorMapPoi;
536 @property (nonatomic, assign) BOOL showsUserLocation;
542 @property (nonatomic, readonly, getter = isUserLocationVisible) BOOL userLocationVisible;
556 @property (nonatomic, copy, readonly, nullable) NSArray<id <BMKAnnotation>> *annotations;
559 @property (nonatomic, assign) BOOL isSelectedAnnotationViewFront;
567 - (void)addAnnotations:(NSArray<
id <
BMKAnnotation>> *)annotations;
575 - (void)removeAnnotations:(NSArray<
id <
BMKAnnotation> > *)annotations;
585 - (nullable
BMKAnnotationView *)dequeueReusableAnnotationViewWithIdentifier:(NSString *)identifier;
590 - (void)selectAnnotation:(
id <
BMKAnnotation>)annotation animated:(BOOL)animated;
595 - (void)deselectAnnotation:(
id <
BMKAnnotation>)annotation animated:(BOOL)animated;
601 - (void)showAnnotations:(NSArray<
id <
BMKAnnotation>> *)annotations animated:(BOOL)animated;
610 - (void)showAnnotations:(NSArray<
id <
BMKAnnotation>> *)annotations padding:(UIEdgeInsets)padding animated:(BOOL)animated;
627 - (void)addOverlays:(NSArray<
id <
BMKOverlay>> *)overlays;
631 - (void)removeOverlay:(
id <
BMKOverlay>)overlay;
635 - (void)removeOverlays:(NSArray<
id <
BMKOverlay>> *)overlays;
640 - (void)insertOverlay:(
id <
BMKOverlay>)overlay atIndex:(NSUInteger)index;
645 - (void)exchangeOverlayAtIndex:(NSUInteger)index1 withOverlayAtIndex:(NSUInteger)index2;
658 @property (nonatomic, copy, readonly, nullable) NSArray<id <BMKOverlay>> *overlays;
679 - (void)removeHeatMap;
682 - (void)startHeatMapFrameAnimation;
685 - (void)stopHeatMapFrameAnimation;
688 - (void)setHeatMapFrameAnimationIndex:(NSInteger)index;
694 @property (nonatomic, assign) BOOL showHexagonHeatMap;
698 - (void)removeHexagonHeatMap;
704 @property (nonatomic, assign) BOOL showOperateLayer;
706 @property (nonatomic, assign) BOOL showOperatePOILayer;
708 @property (nonatomic, assign) BOOL showTrafficUGCLayer;
716 @property (nonatomic, assign) BOOL showDEMLayer;
721 - (BOOL)switchOverlayLayerAndNavigationLayer:(BOOL)isSwitch;
728 - (BOOL)switchOverlayLayerAndPOILayer:(BOOL)isSwitch;
737 - (void)setPoiTagEnable:(BOOL)enable poiTagType:(
BMKPoiTagType)poiTagType;
771 - (void)mapViewDidFinishLoading:(
BMKMapView *)mapView;
776 - (void)mapViewDidRenderValidData:(
BMKMapView *)mapView withError:(NSError *)error;
780 - (void)mapViewDidFinishRendering:(
BMKMapView *)mapView;
790 - (void)mapView:(
BMKMapView *)mapView regionWillChangeAnimated:(BOOL)animated;
801 - (void)mapView:(
BMKMapView *)mapView regionDidChangeAnimated:(BOOL)animated;
818 - (void)mapView:(
BMKMapView *)mapView didAddAnnotationViews:(NSArray *)views;
860 - (void)mapView:(
BMKMapView *)mapView didAddOverlayViews:(NSArray *)overlayViews;
875 - (void)mapView:(
BMKMapView *)mapView onClickedMapBlank:(CLLocationCoordinate2D)coordinate;
880 - (void)mapview:(
BMKMapView *)mapView onDoubleClick:(CLLocationCoordinate2D)coordinate;
885 - (void)mapview:(
BMKMapView *)mapView onLongClick:(CLLocationCoordinate2D)coordinate;
892 - (void)mapview:(
BMKMapView *)mapView onForceTouch:(CLLocationCoordinate2D)coordinate force:(CGFloat)force maximumPossibleForce:(CGFloat)maximumPossibleForce;
896 - (void)mapStatusDidChanged:(
BMKMapView *)mapView;
910 NS_ASSUME_NONNULL_END