10 #import <Foundation/Foundation.h>
11 #import <UIKit/UIKit.h>
21 #import <AMapFoundationKit/AMapServices.h>
64 #pragma mark - 动画相关的key Animation-related key
100 @property (nonatomic, weak) id<MAMapViewDelegate>
delegate;
172 @property (nonatomic, assign, getter = isShowsLabels) BOOL
showsLabels;
180 @property (nonatomic, copy) NSDictionary <NSNumber *, UIColor *> *trafficStatus
__attribute((deprecated(
"Deprecated since 7.8.0")));
236 @property (nonatomic, assign) BOOL openGLESDisabled
__attribute((deprecated(
"Deprecated, since 7.9.0, please use the renderringDisabled property")));
252 #if MA_INCLUDE_WORLD_EN_MAP
272 - (instancetype)initWithFrame:(CGRect)frame isNavi:(BOOL)isNavi;
280 - (instancetype)initWithFrame:(CGRect)frame scaleFactor:(CGFloat)scaleFactor;
311 - (void)setVisibleMapRect:(
MAMapRect)mapRect animated:(BOOL)animated;
345 - (void)setVisibleMapRect:(
MAMapRect)mapRect edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated;
359 - (void)setVisibleMapRect:(
MAMapRect)mapRect edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated duration:(CFTimeInterval)duration;
369 - (void)setCenterCoordinate:(CLLocationCoordinate2D)coordinate animated:(BOOL)animated;
379 - (void)setZoomLevel:(CGFloat)zoomLevel animated:(BOOL)animated;
391 - (void)setZoomLevel:(CGFloat)zoomLevel atPivot:(CGPoint)pivot animated:(BOOL)animated;
403 - (void)setRotationDegree:(CGFloat)rotationDegree animated:(BOOL)animated duration:(CFTimeInterval)duration;
415 - (void)setCameraDegree:(CGFloat)cameraDegree animated:(BOOL)animated duration:(CFTimeInterval)duration;
434 - (void)setMapStatus:(
MAMapStatus *)status animated:(BOOL)animated;
447 animated:(BOOL)animated
448 duration:(CFTimeInterval)duration;
456 - (void)setCompassImage:(UIImage *)image;
466 - (UIImage *)takeSnapshotInRect:(CGRect)rect __attribute((deprecated("Deprecated, please use the takeSnapshotInRect:withCompletionBlock: method since 6.0.0")));
476 - (void)takeSnapshotInRect:(CGRect)rect withCompletionBlock:(
void (^)(UIImage *resultImage, NSInteger state))block;
488 - (void)takeSnapshotInRect:(CGRect)rect timeoutInterval:(NSTimeInterval)timeout completionBlock:(
void (^)(UIImage *resultImage, NSInteger state))block;
498 - (double)metersPerPointForZoomLevel:(CGFloat)zoomLevel;
510 - (CGPoint)convertCoordinate:(CLLocationCoordinate2D)coordinate toPointToView:(UIView *)view;
522 - (CLLocationCoordinate2D)convertPoint:(CGPoint)point toCoordinateFromView:(UIView *)view;
607 - (void)addAnimationWith:(CAKeyframeAnimation *)mapCenterAnimation
608 zoomAnimation:(CAKeyframeAnimation *)zoomAnimation
609 rotateAnimation:(CAKeyframeAnimation *)rotateAnimation
610 cameraDegreeAnimation:(CAKeyframeAnimation *)cameraDegreeAnimation;
624 - (void)setConstructingRoadEnable:(BOOL)enabled;
626 - (void)setMapOptRecordState:(BOOL)state;
627 #pragma mark - Privacy 隐私合规 Privacy compliance
636 + (void)updatePrivacyShow:(AMapPrivacyShowStatus)showStatus privacyInfo:(AMapPrivacyInfoStatus)containStatus;
643 + (void)updatePrivacyAgree:(AMapPrivacyAgreeStatus)agreeStatus;
675 - (void)addAnnotations:(NSArray *)annotations;
691 - (void)removeAnnotations:(NSArray *)annotations;
701 - (NSSet *)annotationsInMapRect:(
MAMapRect)mapRect;
721 - (
MAAnnotationView *)dequeueReusableAnnotationViewWithIdentifier:(NSString *)identifier;
731 - (void)selectAnnotation:(
id <
MAAnnotation>)annotation animated:(BOOL)animated;
741 - (void)deselectAnnotation:(
id <
MAAnnotation>)annotation animated:(BOOL)animated;
751 - (void)showAnnotations:(NSArray *)annotations animated:(BOOL)animated;
763 - (void)showAnnotations:(NSArray *)annotations edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated;
858 - (void)addOverlay:(
id <
MAOverlay>)overlay;
868 - (void)addOverlays:(NSArray *)overlays;
888 - (void)addOverlays:(NSArray *)overlays level:(
MAOverlayLevel)level;
896 - (void)removeOverlay:(
id <
MAOverlay>)overlay;
904 - (void)removeOverlays:(NSArray *)overlays;
950 - (void)insertOverlay:(
id <
MAOverlay>)overlay atIndex:(NSUInteger)index;
960 - (void)exchangeOverlayAtIndex:(NSUInteger)index1 withOverlayAtIndex:(NSUInteger)index2;
972 - (void)exchangeOverlayAtIndex:(NSUInteger)index1 withOverlayAtIndex:(NSUInteger)index2 atLevel:(
MAOverlayLevel)level;
980 - (void)exchangeOverlay:(
id <
MAOverlay>)overlay1 withOverlay:(
id <
MAOverlay>)overlay2;
1000 - (void)showOverlays:(NSArray *)overlays animated:(BOOL)animated;
1012 - (void)showOverlays:(NSArray *)overlays edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated;
1024 - (NSArray*)getHittedPolylinesWith:(CLLocationCoordinate2D)tappedCoord traverseAll:(BOOL)traverseAll;
1032 - (void)setCurrentLocation:(CLLocationCoordinate2D)location;
1035 #if MA_INCLUDE_INDOOR
1056 - (void)setIndoorMapControlOrigin:(CGPoint)origin;
1064 - (void)setCurrentIndoorMapFloorIndex:(NSInteger)floorIndex;
1107 - (NSInteger)hideBuildingsWithPolygon:(CLLocationCoordinate2D *)polygon polygonSize:(NSUInteger)polygonSize;
1115 - (void)showHiddenBuildingsWithOperationId:(NSInteger)operationId;
1142 - (void)removePoiFilter:(NSString *)keyName;
1150 #pragma mark - MAMapViewDelegate
1161 - (void)mapViewRegionChanged:(
MAMapView *)mapView;
1171 - (void)mapView:(
MAMapView *)mapView regionWillChangeAnimated:(BOOL)animated;
1181 - (void)mapView:(
MAMapView *)mapView regionDidChangeAnimated:(BOOL)animated;
1193 - (void)mapView:(
MAMapView *)mapView regionWillChangeAnimated:(BOOL)animated wasUserAction:(BOOL)wasUserAction;
1205 - (void)mapView:(
MAMapView *)mapView regionDidChangeAnimated:(BOOL)animated wasUserAction:(BOOL)wasUserAction;
1215 - (void)mapView:(
MAMapView *)mapView mapWillMoveByUser:(BOOL)wasUserAction;
1225 - (void)mapView:(
MAMapView *)mapView mapDidMoveByUser:(BOOL)wasUserAction;
1235 - (void)mapView:(
MAMapView *)mapView mapWillZoomByUser:(BOOL)wasUserAction;
1245 - (void)mapView:(
MAMapView *)mapView mapDidZoomByUser:(BOOL)wasUserAction;
1253 - (void)mapViewWillStartLoadingMap:(
MAMapView *)mapView;
1261 - (void)mapViewDidFinishLoadingMap:(
MAMapView *)mapView;
1271 - (void)mapViewDidFailLoadingMap:(
MAMapView *)mapView withError:(NSError *)error;
1281 - (void)mapView:(
MAMapView *)mapView didFailLoadTerrainWithError:(NSError *)error;
1318 - (void)mapView:(
MAMapView *)mapView didAddAnnotationViews:(NSArray *)views;
1346 - (void)mapViewWillStartLocatingUser:(
MAMapView *)mapView;
1354 - (void)mapViewDidStopLocatingUser:(
MAMapView *)mapView;
1366 - (void)mapView:(
MAMapView *)mapView didUpdateUserLocation:(
MAUserLocation *)userLocation updatingLocation:(BOOL)updatingLocation;
1375 - (void)mapViewRequireLocationAuth:(CLLocationManager *)locationManager;
1385 - (void)mapView:(
MAMapView *)mapView didFailToLocateUserWithError:(NSError *)error;
1421 - (void)mapView:(
MAMapView *)mapView didAddOverlayRenderers:(NSArray *)overlayRenderers;
1433 - (void)mapView:(
MAMapView *)mapView annotationView:(
MAAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control;
1474 - (void)mapView:(
MAMapView *)mapView didChangeOpenGLESDisabled:(BOOL)openGLESDisabled __attribute((deprecated("Deprecated, since 7.9.0")));
1484 - (void)mapView:(
MAMapView *)mapView didTouchPois:(NSArray *)pois;
1494 - (void)mapView:(
MAMapView *)mapView didSingleTappedAtCoordinate:(CLLocationCoordinate2D)coordinate;
1504 - (void)mapView:(
MAMapView *)mapView didLongPressedAtCoordinate:(CLLocationCoordinate2D)coordinate;
1512 - (void)mapInitComplete:(
MAMapView *)mapView;
1514 #if MA_INCLUDE_INDOOR
1554 - (void)offlineDataWillReload:(
MAMapView *)mapView;
1562 - (void)offlineDataDidReload:(
MAMapView *)mapView;
1569 - (void)customMapStyleAuthFailedWithErrorCode:(
int)errorCode message:(NSString *)msg;
MAAnnotationViewDragState
Definition: MAAnnotationView.h:16
NSString *const kMAMapLayerCenterMapPointKey
NSString *const kMAMapLayerCameraDegreeKey
MAMapType
Definition: MAMapView.h:28
@ MAMapTypeSatellite
卫星地图 Satellite Map
Definition: MAMapView.h:30
@ MAMapTypeNaviNight
导航夜间视图 Navigation Night View
Definition: MAMapView.h:34
@ MAMapTypeNavi
导航视图 Navigation View
Definition: MAMapView.h:32
@ MAMapTypeStandardNight
夜间视图 Night View
Definition: MAMapView.h:31
@ MAMapTypeStandard
普通地图 Standard Map
Definition: MAMapView.h:29
@ MAMapTypeBus
公交视图 Transit View
Definition: MAMapView.h:33
NSString *const kMAMapLayerZoomLevelKey
MATrafficStatus
Definition: MAMapView.h:49
@ MATrafficStatusSmooth
1 通畅 Smooth
Definition: MAMapView.h:50
@ MATrafficStatusSeriousJam
4 严重阻塞 Severely blocked
Definition: MAMapView.h:53
@ MATrafficStatusSlow
2 缓行 Slow-moving
Definition: MAMapView.h:51
@ MATrafficStatusJam
3 阻塞 Blocked
Definition: MAMapView.h:52
@ MATrafficStatusExtremelySmooth
5 极度通畅 Extremely smooth
Definition: MAMapView.h:54
MAOverlayLevel
Definition: MAMapView.h:59
@ MAOverlayLevelAboveRoads
在地图底图标注和兴趣点图标之下绘制overlay Draw overlay below map base annotations and POI icons
Definition: MAMapView.h:60
@ MAOverlayLevelAboveLabels
在地图底图标注和兴趣点图标之上绘制overlay Draw overlay on top of map base annotations and POI icons
Definition: MAMapView.h:61
NSString *const kMAMapLayerRotationDegreeKey
MAUserTrackingMode
Definition: MAMapView.h:40
@ MAUserTrackingModeFollow
追踪用户的location更新 Track User's Location Updates
Definition: MAMapView.h:42
@ MAUserTrackingModeNone
不追踪用户的location更新 Do Not Track User's Location Updates
Definition: MAMapView.h:41
@ MAUserTrackingModeFollowWithHeading
追踪用户的location与heading更新 Track user's location and heading updates
Definition: MAMapView.h:43
Definition: MAMapView.h:647
NSArray * annotations
Definition: MAMapView.h:651
NSArray * selectedAnnotations
Definition: MAMapView.h:655
CGRect annotationVisibleRect
Definition: MAMapView.h:659
Definition: MAMapView.h:1095
Definition: MAMapView.h:1077
BOOL customMapStyleEnabled
Definition: MAMapView.h:1081
Definition: MAMapView.h:1118
Definition: MAMapView.h:1036
BOOL showsIndoorMapControl
Definition: MAMapView.h:1044
BOOL showsIndoorMap
Definition: MAMapView.h:1040
CGSize indoorMapControlSize
Definition: MAMapView.h:1048
void clearIndoorMapCache()
清空室内地图缓存 Clear indoor map cache
Definition: MAMapView.h:834
NSArray * overlays
Definition: MAMapView.h:838
Definition: MAMapView.h:1129
void clearPoiFilter()
清除poi避让框 Clear POI avoidance frame
Definition: MAMapView.h:768
MAUserLocation * userLocation
Definition: MAMapView.h:776
MACircle * userLocationAccuracyCircle
Definition: MAMapView.h:784
MAUserTrackingMode userTrackingMode
Definition: MAMapView.h:788
CLLocationDistance distanceFilter
Definition: MAMapView.h:796
BOOL allowsBackgroundLocationUpdates
Definition: MAMapView.h:812
BOOL customizeUserLocationAccuracyCircleRepresentation
Definition: MAMapView.h:780
BOOL userLocationVisible
Definition: MAMapView.h:792
BOOL showsUserLocation
Definition: MAMapView.h:772
BOOL pausesLocationUpdatesAutomatically
Definition: MAMapView.h:808
CLLocationDegrees headingFilter
Definition: MAMapView.h:804
CLLocationAccuracy desiredAccuracy
Definition: MAMapView.h:800
Definition: MAAnnotationView.h:29
Definition: MABaseEngineOverlay.h:14
Definition: MACircle.h:15
Definition: MAIndoorInfo.h:35
Definition: MAMapCustomStyleOptions.h:12
Definition: MAMapStatus.h:18
Definition: MAMapView.h:85
AMapRegionLanguageType regionLanguageType
Definition: MAMapView.h:258
CLLocationCoordinate2D centerCoordinate
Definition: MAMapView.h:108
id< MAMapViewDelegate > delegate
Definition: MAMapView.h:100
BOOL showsLabels
Definition: MAMapView.h:172
CGPoint screenAnchor
Definition: MAMapView.h:244
NSUInteger maxRenderFrame
Definition: MAMapView.h:228
BOOL terrainEnabled
Definition: MAMapView.h:92
CGFloat rotationDegree
Definition: MAMapView.h:140
NSString * terrainApprovalNumber()
获取地形图审图号。(since 8.2.0) Obtain topographic map approval number(since 8.2.0)
MAMapType mapType
Definition: MAMapView.h:104
BOOL showsCompass
Definition: MAMapView.h:188
MAMapRect visibleMapRect
Definition: MAMapView.h:116
BOOL rotateEnabled
Definition: MAMapView.h:160
NSString * mapContentApprovalNumber()
获取地图审图号。如果启用了“自定义样式”功能(customMapStyleEnabled 为 YES),则返回nil。(since 5.4.0) Obtain the map approval numb...
void reloadInternalTexture()
重新加载内部纹理,在纹理被错误释放时可以执行此方法。(since 5.4.0) Reload internal textures, this method can be executed when te...
CGPoint compassOrigin
Definition: MAMapView.h:192
MAMapStatus * getMapStatus()
获取地图状态 Get map status
BOOL showTraffic
Definition: MAMapView.h:176
double metersPerPointForCurrentZoom
Definition: MAMapView.h:220
CGPoint scaleOrigin
Definition: MAMapView.h:204
CGSize logoSize
Definition: MAMapView.h:216
NSRunLoopMode runLoopMode
Definition: MAMapView.h:248
CGSize compassSize
Definition: MAMapView.h:196
MACoordinateRegion limitRegion
Definition: MAMapView.h:120
BOOL zoomEnabled
Definition: MAMapView.h:152
MAMapRect limitMapRect
Definition: MAMapView.h:124
BOOL showsScale
Definition: MAMapView.h:200
NSNumber * mapLanguage
Definition: MAMapView.h:253
CGFloat maxZoomLevel
Definition: MAMapView.h:136
BOOL isAbroad
Definition: MAMapView.h:224
void forceRefresh()
强制刷新。(since 6.0.0) Force refresh
BOOL showsBuildings
Definition: MAMapView.h:168
void reloadMap()
重新加载地图 Reload the map
BOOL terrainAuth
Definition: MAMapView.h:96
NSDictionary< NSNumber *, UIColor * > *trafficStatus __attribute((deprecated("Deprecated since 7.8.0")))
CGFloat cameraDegree
Definition: MAMapView.h:144
CGFloat minZoomLevel
Definition: MAMapView.h:132
CGPoint logoCenter
Definition: MAMapView.h:212
MACoordinateRegion region
Definition: MAMapView.h:112
BOOL isAllowDecreaseFrame
Definition: MAMapView.h:232
CGFloat zoomLevel
Definition: MAMapView.h:128
BOOL rotateCameraEnabled
Definition: MAMapView.h:164
BOOL loadWorldVectorMap
Definition: MAMapView.h:262
BOOL touchPOIEnabled
Definition: MAMapView.h:184
CGSize scaleSize
Definition: MAMapView.h:208
BOOL metalEnabled
Definition: MAMapView.h:88
void clearDisk()
清除所有磁盘上缓存的地图数据(不包括离线地图) Clear all cached map data on disk (excluding offline maps)
BOOL openGLESDisabled __attribute((deprecated("Deprecated, since 7.9.0, please use the renderringDisabled property")))
NSString * satelliteImageApprovalNumber()
获取卫星图片审图号。(since 5.4.0) Obtain satellite image approval number (since 5.4.0)
BOOL renderringDisabled
Definition: MAMapView.h:240
BOOL scrollEnabled
Definition: MAMapView.h:156
BOOL zoomingInPivotsAroundAnchorPoint
Definition: MAMapView.h:148
Definition: MAOverlayRenderer.h:21
Definition: MAPoiFilter.h:22
Definition: MAUserLocation.h:19
Definition: MAUserLocationRepresentation.h:18
Definition: MAAnnotation.h:17
Definition: MAMapView.h:1151
Definition: MAOverlay.h:15
Definition: MAGeometry.h:35
Definition: MAGeometry.h:56