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;
90 @property (nonatomic, weak, nullable) id<BMKMapViewDelegate> delegate;
93 @property (nonatomic, weak, nullable) id<BMKMapGestureDelegate> gestureDelegate;
96 @property (nonatomic, assign) BMKMapType mapType;
106 @property (nonatomic, strong) UIColor *backgroundColor;
115 @property (nonatomic, assign) CGPoint compassPosition;
118 @property (nonatomic, readonly) CGSize compassSize;
121 @property (nonatomic, assign) CLLocationCoordinate2D centerCoordinate;
126 @property (nonatomic, assign) NSInteger fontSizeLevel;
129 @property (nonatomic, assign)
float zoomLevel;
132 @property (nonatomic, assign)
float minZoomLevel;
135 @property (nonatomic, assign)
float maxZoomLevel;
138 @property (nonatomic, assign)
int rotation;
141 @property (nonatomic, assign)
int overlooking;
144 @property (nonatomic, assign)
int minOverlooking;
147 @property(nonatomic, getter = isBuildingsEnabled) BOOL buildingsEnabled;
150 @property(nonatomic, assign) BOOL showMapPoi;
153 @property(nonatomic, getter = isTrafficEnabled) BOOL trafficEnabled;
156 @property(nonatomic, getter = isBaiduHeatMapEnabled) BOOL baiduHeatMapEnabled;
159 @property(nonatomic) BOOL gesturesEnabled;
162 @property(nonatomic, getter = isZoomEnabled) BOOL zoomEnabled;
165 @property(nonatomic, getter = isZoomEnabledWithTap) BOOL zoomEnabledWithTap;
168 @property(nonatomic, getter = isScrollEnabled) BOOL scrollEnabled;
171 @property(nonatomic, getter = isOverlookEnabled) BOOL overlookEnabled;
174 @property(nonatomic, getter = isRotateEnabled) BOOL rotateEnabled;
177 @property(nonatomic, assign) BOOL forceTouchEnabled;
180 @property(nonatomic, assign) BOOL gestureZoomAnimationEnabled;
183 @property (nonatomic, assign) BOOL showMapScaleBar;
186 @property (nonatomic, assign) CGPoint mapScaleBarPosition;
189 @property (nonatomic, readonly) CGSize mapScaleBarSize;
200 @property (nonatomic, assign) UIEdgeInsets mapPadding;
203 @property (nonatomic, assign) BOOL updateTargetScreenPtWhenMapPaddingChanged;
209 @property(nonatomic, getter = isChangeWithTouchPointCenterEnabled) BOOL ChangeWithTouchPointCenterEnabled;
215 @property(nonatomic, getter = isChangeCenterWithDoubleTouchPointEnabled) BOOL ChangeCenterWithDoubleTouchPointEnabled;
220 + (void)customMapStyle:(NSString *)customMapStyleJsonFilePath __deprecated_msg("Please use - (
void)setCustomMapStyleEnable:(BOOL)enable");
224 + (void)enableCustomMapStyle:(BOOL)enable __deprecated_msg("Please use - (
void)setCustomMapStylePath:(NSString *)customMapStyleFilePath");
228 + (void)willBackGround __deprecated_msg("废弃方法(空实现),逻辑由地图SDK控制");
232 + (void)didForeGround __deprecated_msg("废弃方法(空实现),逻辑由地图SDK控制");
236 + (BOOL)setBaiduMapSDKMetalEnable:(BOOL)metalEnable;
245 - (BOOL)setCustomTrafficColorForSmooth:(UIColor *)smooth
247 congestion:(UIColor *)congestion
248 severeCongestion:(UIColor *)severeCongestion;
251 - (void)viewWillAppear;
254 - (void)viewWillDisappear;
257 - (void)mapForceRefresh;
278 - (void)setCenterCoordinate:(CLLocationCoordinate2D)coordinate animated:(BOOL)animated;
284 - (nullable UIImage *)takeSnapshot;
290 - (nullable UIImage *)takeSnapshot:(CGRect)rect;
294 - (void)setCompassImage:(UIImage *)image;
299 - (void)setVisibleMapRect:(
BMKMapRect)mapRect animated:(BOOL)animate;
308 - (void)setVisibleMapRect:(
BMKMapRect)mapRect edgePadding:(UIEdgeInsets)insets animated:(BOOL)animate;
314 - (void)fitVisibleMapRect:(
BMKMapRect)mapRect edgePadding:(UIEdgeInsets)insets withAnimated:(BOOL)animate;
326 - (CGPoint)convertCoordinate:(CLLocationCoordinate2D)coordinate toPointToView:(UIView *)view;
332 - (CLLocationCoordinate2D)convertPoint:(CGPoint)point toCoordinateFromView:(UIView *)view;
350 - (CGRect)convertMapRect:(
BMKMapRect)mapRect toRectToView:(UIView *)view;
356 - (
BMKMapRect)convertRect:(CGRect)rect toMapRectFromView:(UIView *)view;
361 - (CGPoint)screenPointFromMapPoint3:(
BMKMapPoint3)mapPoint3;
366 - (CGPoint)glPointForMapPoint:(
BMKMapPoint)mapPoint;
372 - (CGPoint *)glPointsForMapPoints:(
BMKMapPoint *)mapPoints count:(NSUInteger)count;
377 - (void)setMapCenterToScreenPt:(CGPoint)ptInScreen;
396 - (void)setMapStatus:(
BMKMapStatus *)mapStatus withAnimation:(BOOL)bAnimation;
402 - (void)setMapStatus:(
BMKMapStatus *)mapStatus withAnimation:(BOOL)bAnimation withAnimationTime:(
int)ulDuration;
406 - (BOOL)isSurpportBaiduHeatMap;
411 - (
float *)getProjectionMatrix;
416 - (
float *)getViewMatrix;
425 - (void)setCustomMapStylePath:(NSString *)customMapStyleFilePath;
431 - (void)setCustomMapStylePath:(NSString *)customMapStyleFilePath mode:(
int)mode;
436 - (void)setCustomMapStyleEnable:(BOOL)enable;
451 preLoad:(
void (^ _Nullable)(NSString * _Nullable path))preLoad
452 success:(
void (^ _Nullable)(NSString * path))success
453 failure:(
void (^ _Nullable)(NSError * error, NSString * _Nullable path))failure;
461 @property (nonatomic, assign) BOOL baseIndoorMapEnabled;
464 @property (nonatomic, assign) BOOL showIndoorMapPoi;
481 @property (nonatomic, assign) BOOL showsUserLocation;
487 @property (nonatomic, readonly, getter = isUserLocationVisible) BOOL userLocationVisible;
501 @property (nonatomic, copy, readonly, nullable) NSArray<id <BMKAnnotation>> *annotations;
504 @property (nonatomic, assign) BOOL isSelectedAnnotationViewFront;
512 - (void)addAnnotations:(NSArray<
id <
BMKAnnotation>> *)annotations;
520 - (void)removeAnnotations:(NSArray<
id <
BMKAnnotation> > *)annotations;
530 - (nullable
BMKAnnotationView *)dequeueReusableAnnotationViewWithIdentifier:(NSString *)identifier;
535 - (void)selectAnnotation:(
id <
BMKAnnotation>)annotation animated:(BOOL)animated;
540 - (void)deselectAnnotation:(
id <
BMKAnnotation>)annotation animated:(BOOL)animated;
545 - (void)showAnnotations:(NSArray<
id <
BMKAnnotation>> *)annotations animated:(BOOL)animated;
562 - (void)addOverlays:(NSArray<
id <
BMKOverlay>> *)overlays;
566 - (void)removeOverlay:(
id <
BMKOverlay>)overlay;
570 - (void)removeOverlays:(NSArray<
id <
BMKOverlay>> *)overlays;
575 - (void)insertOverlay:(
id <
BMKOverlay>)overlay atIndex:(NSUInteger)index;
580 - (void)exchangeOverlayAtIndex:(NSUInteger)index1 withOverlayAtIndex:(NSUInteger)index2;
593 @property (nonatomic, copy, readonly, nullable) NSArray<id <BMKOverlay>> *overlays;
609 - (void)removeHeatMap;
612 - (void)startHeatMapFrameAnimation;
615 - (void)stopHeatMapFrameAnimation;
618 - (void)setHeatMapFrameAnimationIndex:(NSInteger)index;
625 @property (nonatomic, assign) BOOL showOperateLayer;
630 - (BOOL)switchOverlayLayerAndNavigationLayer:(BOOL)isSwitch;
637 - (BOOL)switchOverlayLayerAndPOILayer:(BOOL)isSwitch;
646 - (void)setPoiTagEnable:(BOOL)enable poiTagType:(
BMKPoiTagType)poiTagType;
655 - (void)mapViewDidFinishLoading:(
BMKMapView *)mapView;
660 - (void)mapViewDidRenderValidData:(
BMKMapView *)mapView withError:(NSError *)error;
664 - (void)mapViewDidFinishRendering:(
BMKMapView *)mapView;
674 - (void)mapView:(
BMKMapView *)mapView regionWillChangeAnimated:(BOOL)animated;
685 - (void)mapView:(
BMKMapView *)mapView regionDidChangeAnimated:(BOOL)animated;
702 - (void)mapView:(
BMKMapView *)mapView didAddAnnotationViews:(NSArray *)views;
744 - (void)mapView:(
BMKMapView *)mapView didAddOverlayViews:(NSArray *)overlayViews;
759 - (void)mapView:(
BMKMapView *)mapView onClickedMapBlank:(CLLocationCoordinate2D)coordinate;
764 - (void)mapview:(
BMKMapView *)mapView onDoubleClick:(CLLocationCoordinate2D)coordinate;
769 - (void)mapview:(
BMKMapView *)mapView onLongClick:(CLLocationCoordinate2D)coordinate;
776 - (void)mapview:(
BMKMapView *)mapView onForceTouch:(CLLocationCoordinate2D)coordinate force:(CGFloat)force maximumPossibleForce:(CGFloat)maximumPossibleForce;
780 - (void)mapStatusDidChanged:(
BMKMapView *)mapView;
794 NS_ASSUME_NONNULL_END