22 NS_ASSUME_NONNULL_BEGIN
24 @class CompassOverlay;
39 @property (nonatomic, copy, nullable) NSString *
text;
42 @property (nonatomic, assign) CLLocationCoordinate2D
pt;
45 @property (nonatomic, copy, nullable) NSString *
uid;
89 typedef 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;
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;
525 @property (nonatomic, assign) BOOL baseIndoorMapEnabled;
528 @property (nonatomic, assign) BOOL showIndoorMapPoi;
531 @property (nonatomic, assign) BOOL showDotPoi;
548 @property (nonatomic, assign) BOOL showsUserLocation;
554 @property (nonatomic, readonly, getter = isUserLocationVisible) BOOL userLocationVisible;
568 @property (nonatomic, copy, readonly, nullable) NSArray<id <BMKAnnotation>> *annotations;
571 @property (nonatomic, assign) BOOL isSelectedAnnotationViewFront;
579 - (void)addAnnotations:(NSArray<
id <
BMKAnnotation>> *)annotations;
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;
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;
670 @property (nonatomic, copy, readonly, nullable) NSArray<id <BMKOverlay>> *overlays;
691 - (void)removeHeatMap;
694 - (void)startHeatMapFrameAnimation;
697 - (void)stopHeatMapFrameAnimation;
700 - (void)setHeatMapFrameAnimationIndex:(NSInteger)index;
706 @property (nonatomic, assign) BOOL showHexagonHeatMap;
710 - (void)removeHexagonHeatMap;
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;
781 - (BOOL)downloadMapStyle:(NSString *)urlString;
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;
940 NS_ASSUME_NONNULL_END