20 NS_ASSUME_NONNULL_BEGIN
22 @class CompassOverlay;
30 @property (nonatomic, copy, nullable) NSString *
text;
33 @property (nonatomic, assign) CLLocationCoordinate2D
pt;
36 @property (nonatomic, copy, nullable) NSString *
uid;
78 typedef enum : NSInteger {
101 @property (nonatomic, weak, nullable) id<BMKMapViewDelegate> delegate;
104 @property (nonatomic, weak, nullable) id<BMKMapGestureDelegate> gestureDelegate;
107 @property (nonatomic, assign) BMKMapType mapType;
117 @property (nonatomic, strong) UIColor *backgroundColor;
126 @property (nonatomic, assign) CGPoint compassPosition;
129 @property (nonatomic, readonly) CGSize compassSize;
132 @property (nonatomic, assign) CLLocationCoordinate2D centerCoordinate;
137 @property (nonatomic, assign) NSInteger fontSizeLevel;
140 @property (nonatomic, assign)
float zoomLevel;
143 @property (nonatomic, assign)
float minZoomLevel;
146 @property (nonatomic, assign)
float maxZoomLevel;
149 @property (nonatomic, assign)
int rotation;
152 @property (nonatomic, assign)
int overlooking;
155 @property (nonatomic, assign)
int minOverlooking;
158 @property(nonatomic, getter = isBuildingsEnabled) BOOL buildingsEnabled;
161 @property(nonatomic, assign) BOOL showMapPoi;
164 @property(nonatomic, getter = isTrafficEnabled) BOOL trafficEnabled;
167 @property(nonatomic, getter = isBaiduHeatMapEnabled) BOOL baiduHeatMapEnabled;
170 @property(nonatomic) BOOL gesturesEnabled;
173 @property(nonatomic, getter = isZoomEnabled) BOOL zoomEnabled;
176 @property(nonatomic, getter = isZoomEnabledWithTap) BOOL zoomEnabledWithTap;
179 @property(nonatomic, getter = isScrollEnabled) BOOL scrollEnabled;
182 @property(nonatomic, getter = isOverlookEnabled) BOOL overlookEnabled;
185 @property(nonatomic, getter = isRotateEnabled) BOOL rotateEnabled;
188 @property(nonatomic, assign) BOOL forceTouchEnabled;
191 @property(nonatomic, assign) BOOL gestureZoomAnimationEnabled;
194 @property (nonatomic, assign) BOOL showMapScaleBar;
197 @property (nonatomic, assign) CGPoint mapScaleBarPosition;
200 @property (nonatomic, readonly) CGSize mapScaleBarSize;
211 @property (nonatomic, assign) UIEdgeInsets mapPadding;
214 @property (nonatomic, assign) BOOL updateTargetScreenPtWhenMapPaddingChanged;
220 @property(nonatomic, getter = isChangeWithTouchPointCenterEnabled) BOOL ChangeWithTouchPointCenterEnabled;
226 @property(nonatomic, getter = isChangeCenterWithDoubleTouchPointEnabled) BOOL ChangeCenterWithDoubleTouchPointEnabled;
231 + (void)customMapStyle:(NSString *)customMapStyleJsonFilePath __deprecated_msg("Please use - (
void)setCustomMapStyleEnable:(BOOL)enable");
235 + (void)enableCustomMapStyle:(BOOL)enable __deprecated_msg("Please use - (
void)setCustomMapStylePath:(NSString *)customMapStyleFilePath");
239 + (void)willBackGround __deprecated_msg("废弃方法(空实现),逻辑由地图SDK控制");
243 + (void)didForeGround __deprecated_msg("废弃方法(空实现),逻辑由地图SDK控制");
247 + (BOOL)setBaiduMapSDKMetalEnable:(BOOL)metalEnable;
256 - (BOOL)setCustomTrafficColorForSmooth:(UIColor *)smooth
258 congestion:(UIColor *)congestion
259 severeCongestion:(UIColor *)severeCongestion;
262 - (void)viewWillAppear;
265 - (void)viewWillDisappear;
268 - (void)mapForceRefresh;
289 - (void)setCenterCoordinate:(CLLocationCoordinate2D)coordinate animated:(BOOL)animated;
295 - (nullable UIImage *)takeSnapshot;
301 - (nullable UIImage *)takeSnapshot:(CGRect)rect;
305 - (void)setCompassImage:(UIImage *)image;
310 - (void)setVisibleMapRect:(
BMKMapRect)mapRect animated:(BOOL)animate;
319 - (void)setVisibleMapRect:(
BMKMapRect)mapRect edgePadding:(UIEdgeInsets)insets animated:(BOOL)animate;
325 - (void)fitVisibleMapRect:(
BMKMapRect)mapRect edgePadding:(UIEdgeInsets)insets withAnimated:(BOOL)animate;
337 - (CGPoint)convertCoordinate:(CLLocationCoordinate2D)coordinate toPointToView:(UIView *)view;
343 - (CLLocationCoordinate2D)convertPoint:(CGPoint)point toCoordinateFromView:(UIView *)view;
361 - (CGRect)convertMapRect:(
BMKMapRect)mapRect toRectToView:(UIView *)view;
367 - (
BMKMapRect)convertRect:(CGRect)rect toMapRectFromView:(UIView *)view;
372 - (CGPoint)screenPointFromMapPoint3:(
BMKMapPoint3)mapPoint3;
377 - (CGPoint)glPointForMapPoint:(
BMKMapPoint)mapPoint;
383 - (CGPoint *)glPointsForMapPoints:(
BMKMapPoint *)mapPoints count:(NSUInteger)count;
388 - (void)setMapCenterToScreenPt:(CGPoint)ptInScreen;
407 - (void)setMapStatus:(
BMKMapStatus *)mapStatus withAnimation:(BOOL)bAnimation;
413 - (void)setMapStatus:(
BMKMapStatus *)mapStatus withAnimation:(BOOL)bAnimation withAnimationTime:(
int)ulDuration;
417 - (BOOL)isSurpportBaiduHeatMap;
422 - (
float *)getProjectionMatrix;
427 - (
float *)getViewMatrix;
436 - (void)setCustomMapStylePath:(NSString *)customMapStyleFilePath;
442 - (void)setCustomMapStylePath:(NSString *)customMapStyleFilePath mode:(
int)mode;
447 - (void)setCustomMapStyleEnable:(BOOL)enable;
462 preLoad:(
void (^ _Nullable)(NSString * _Nullable path))preLoad
463 success:(
void (^ _Nullable)(NSString * path))success
464 failure:(
void (^ _Nullable)(NSError * error, NSString * _Nullable path))failure;
472 @property (nonatomic, assign) BOOL baseIndoorMapEnabled;
475 @property (nonatomic, assign) BOOL showIndoorMapPoi;
492 @property (nonatomic, assign) BOOL showsUserLocation;
498 @property (nonatomic, readonly, getter = isUserLocationVisible) BOOL userLocationVisible;
512 @property (nonatomic, copy, readonly, nullable) NSArray<id <BMKAnnotation>> *annotations;
515 @property (nonatomic, assign) BOOL isSelectedAnnotationViewFront;
523 - (void)addAnnotations:(NSArray<
id <
BMKAnnotation>> *)annotations;
531 - (void)removeAnnotations:(NSArray<
id <
BMKAnnotation> > *)annotations;
541 - (nullable
BMKAnnotationView *)dequeueReusableAnnotationViewWithIdentifier:(NSString *)identifier;
546 - (void)selectAnnotation:(
id <
BMKAnnotation>)annotation animated:(BOOL)animated;
551 - (void)deselectAnnotation:(
id <
BMKAnnotation>)annotation animated:(BOOL)animated;
556 - (void)showAnnotations:(NSArray<
id <
BMKAnnotation>> *)annotations animated:(BOOL)animated;
564 - (void)showAnnotations:(NSArray<
id <
BMKAnnotation>> *)annotations padding:(UIEdgeInsets)padding animated:(BOOL)animated;
581 - (void)addOverlays:(NSArray<
id <
BMKOverlay>> *)overlays;
585 - (void)removeOverlay:(
id <
BMKOverlay>)overlay;
589 - (void)removeOverlays:(NSArray<
id <
BMKOverlay>> *)overlays;
594 - (void)insertOverlay:(
id <
BMKOverlay>)overlay atIndex:(NSUInteger)index;
599 - (void)exchangeOverlayAtIndex:(NSUInteger)index1 withOverlayAtIndex:(NSUInteger)index2;
612 @property (nonatomic, copy, readonly, nullable) NSArray<id <BMKOverlay>> *overlays;
633 - (void)removeHeatMap;
636 - (void)startHeatMapFrameAnimation;
639 - (void)stopHeatMapFrameAnimation;
642 - (void)setHeatMapFrameAnimationIndex:(NSInteger)index;
649 @property (nonatomic, assign) BOOL showOperateLayer;
654 - (BOOL)switchOverlayLayerAndNavigationLayer:(BOOL)isSwitch;
661 - (BOOL)switchOverlayLayerAndPOILayer:(BOOL)isSwitch;
670 - (void)setPoiTagEnable:(BOOL)enable poiTagType:(
BMKPoiTagType)poiTagType;
704 - (void)mapViewDidFinishLoading:(
BMKMapView *)mapView;
709 - (void)mapViewDidRenderValidData:(
BMKMapView *)mapView withError:(NSError *)error;
713 - (void)mapViewDidFinishRendering:(
BMKMapView *)mapView;
723 - (void)mapView:(
BMKMapView *)mapView regionWillChangeAnimated:(BOOL)animated;
734 - (void)mapView:(
BMKMapView *)mapView regionDidChangeAnimated:(BOOL)animated;
751 - (void)mapView:(
BMKMapView *)mapView didAddAnnotationViews:(NSArray *)views;
793 - (void)mapView:(
BMKMapView *)mapView didAddOverlayViews:(NSArray *)overlayViews;
809 - (void)mapView:(
BMKMapView *)mapView onClickedMapBlank:(CLLocationCoordinate2D)coordinate;
814 - (void)mapview:(
BMKMapView *)mapView onDoubleClick:(CLLocationCoordinate2D)coordinate;
819 - (void)mapview:(
BMKMapView *)mapView onLongClick:(CLLocationCoordinate2D)coordinate;
826 - (void)mapview:(
BMKMapView *)mapView onForceTouch:(CLLocationCoordinate2D)coordinate force:(CGFloat)force maximumPossibleForce:(CGFloat)maximumPossibleForce;
830 - (void)mapStatusDidChanged:(
BMKMapView *)mapView;
844 NS_ASSUME_NONNULL_END