10#import <Foundation/Foundation.h>
11#import <UIKit/UIKit.h>
21#import <AMapFoundationKit/AMapServices.h>
77#pragma mark - 动画相关的key Animation-related key
95@protocol MAMapViewDelegate;
113@property (nonatomic, weak) id<MAMapViewDelegate>
delegate;
185@property (nonatomic, assign, getter = isShowsLabels) BOOL
showsLabels;
193@property (nonatomic, copy) NSDictionary <NSNumber *, UIColor *> *trafficStatus
__attribute((deprecated(
"Deprecated since 7.8.0")));
264@property (nonatomic, assign) BOOL openGLESDisabled
__attribute((deprecated(
"Deprecated, since 7.9.0, please use the renderringDisabled property")));
295#if MA_INCLUDE_WORLD_EN_MAP
296@property (nonatomic, strong) NSNumber *mapLanguage;
316- (instancetype)initWithFrame:(CGRect)frame isNavi:(BOOL)isNavi;
324- (instancetype)initWithFrame:(CGRect)frame scaleFactor:(CGFloat)scaleFactor;
355- (void)setVisibleMapRect:(
MAMapRect)mapRect animated:(BOOL)animated;
389- (void)setVisibleMapRect:(
MAMapRect)mapRect edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated;
403- (void)setVisibleMapRect:(
MAMapRect)mapRect edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated duration:(CFTimeInterval)duration;
413- (void)setCenterCoordinate:(CLLocationCoordinate2D)coordinate animated:(BOOL)animated;
423- (void)setZoomLevel:(CGFloat)zoomLevel animated:(BOOL)animated;
435- (void)setZoomLevel:(CGFloat)zoomLevel atPivot:(CGPoint)pivot animated:(BOOL)animated;
447- (void)setRotationDegree:(CGFloat)rotationDegree animated:(BOOL)animated duration:(CFTimeInterval)duration;
459- (void)setCameraDegree:(CGFloat)cameraDegree animated:(BOOL)animated duration:(CFTimeInterval)duration;
478- (void)setMapStatus:(
MAMapStatus *)status animated:(BOOL)animated;
491 animated:(BOOL)animated
492 duration:(CFTimeInterval)duration;
500- (void)setCompassImage:(UIImage *)image;
510- (UIImage *)takeSnapshotInRect:(CGRect)rect __attribute((deprecated("Deprecated, please use the takeSnapshotInRect:withCompletionBlock: method since 6.0.0")));
520- (void)takeSnapshotInRect:(CGRect)rect withCompletionBlock:(
void (^)(UIImage *resultImage, NSInteger state))block;
532- (void)takeSnapshotInRect:(CGRect)rect timeoutInterval:(NSTimeInterval)timeout completionBlock:(
void (^)(UIImage *resultImage, NSInteger state))block;
542- (double)metersPerPointForZoomLevel:(CGFloat)zoomLevel;
554- (CGPoint)convertCoordinate:(CLLocationCoordinate2D)coordinate toPointToView:(UIView *)view;
566- (CLLocationCoordinate2D)convertPoint:(CGPoint)point toCoordinateFromView:(UIView *)view;
651- (void)addAnimationWith:(CAKeyframeAnimation *)mapCenterAnimation
652 zoomAnimation:(CAKeyframeAnimation *)zoomAnimation
653 rotateAnimation:(CAKeyframeAnimation *)rotateAnimation
654 cameraDegreeAnimation:(CAKeyframeAnimation *)cameraDegreeAnimation;
668- (void)setConstructingRoadEnable:(BOOL)enabled;
670- (void)setMapOptRecordState:(BOOL)state;
671#pragma mark - Privacy 隐私合规 Privacy compliance
680+ (void)updatePrivacyShow:(AMapPrivacyShowStatus)showStatus privacyInfo:(AMapPrivacyInfoStatus)containStatus;
687+ (void)updatePrivacyAgree:(AMapPrivacyAgreeStatus)agreeStatus;
691@interface MAMapView (Annotation)
695@property (nonatomic, readonly) NSArray *annotations;
699@property (nonatomic, copy) NSArray *selectedAnnotations;
703@property (nonatomic, readonly) CGRect annotationVisibleRect;
711- (void)addAnnotation:(
id <MAAnnotation>)annotation;
719- (void)addAnnotations:(NSArray *)annotations;
727- (void)removeAnnotation:(
id <MAAnnotation>)annotation;
735- (void)removeAnnotations:(NSArray *)annotations;
745- (NSSet *)annotationsInMapRect:(
MAMapRect)mapRect;
765- (
MAAnnotationView *)dequeueReusableAnnotationViewWithIdentifier:(NSString *)identifier;
775- (void)selectAnnotation:(
id <MAAnnotation>)annotation animated:(BOOL)animated;
785- (void)deselectAnnotation:(
id <MAAnnotation>)annotation animated:(BOOL)animated;
795- (void)showAnnotations:(NSArray *)annotations animated:(BOOL)animated;
807- (void)showAnnotations:(NSArray *)annotations edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated;
812@interface MAMapView (UserLocation)
816@property (nonatomic) BOOL showsUserLocation;
824@property (nonatomic) BOOL customizeUserLocationAccuracyCircleRepresentation;
828@property (nonatomic, readonly)
MACircle *userLocationAccuracyCircle;
836@property (nonatomic, readonly, getter=isUserLocationVisible) BOOL userLocationVisible;
840@property (nonatomic) CLLocationDistance distanceFilter;
844@property (nonatomic) CLLocationAccuracy desiredAccuracy;
848@property (nonatomic) CLLocationDegrees headingFilter;
852@property (nonatomic) BOOL pausesLocationUpdatesAutomatically;
856@property (nonatomic) BOOL allowsBackgroundLocationUpdates;
878@interface MAMapView (Overlay)
882@property (nonatomic, readonly) NSArray *overlays;
902- (void)addOverlay:(
id <MAOverlay>)overlay;
912- (void)addOverlays:(NSArray *)overlays;
922- (void)addOverlay:(
id <MAOverlay>)overlay level:(
MAOverlayLevel)level;
932- (void)addOverlays:(NSArray *)overlays level:(
MAOverlayLevel)level;
940- (void)removeOverlay:(
id <MAOverlay>)overlay;
948- (void)removeOverlays:(NSArray *)overlays;
964- (void)insertOverlay:(
id <MAOverlay>)overlay atIndex:(NSUInteger)index level:(
MAOverlayLevel)level;
974- (void)insertOverlay:(
id <MAOverlay>)overlay aboveOverlay:(
id <MAOverlay>)sibling;
984- (void)insertOverlay:(
id <MAOverlay>)overlay belowOverlay:(
id <MAOverlay>)sibling;
994- (void)insertOverlay:(
id <MAOverlay>)overlay atIndex:(NSUInteger)index;
1004- (void)exchangeOverlayAtIndex:(NSUInteger)index1 withOverlayAtIndex:(NSUInteger)index2;
1016- (void)exchangeOverlayAtIndex:(NSUInteger)index1 withOverlayAtIndex:(NSUInteger)index2 atLevel:(
MAOverlayLevel)level;
1024- (void)exchangeOverlay:(
id <MAOverlay>)overlay1 withOverlay:(
id <MAOverlay>)overlay2;
1044- (void)showOverlays:(NSArray *)overlays animated:(BOOL)animated;
1056- (void)showOverlays:(NSArray *)overlays edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated;
1068- (NSArray*)getHittedPolylinesWith:(CLLocationCoordinate2D)tappedCoord traverseAll:(BOOL)traverseAll;
1076- (void)setCurrentLocation:(CLLocationCoordinate2D)location;
1079#if MA_INCLUDE_INDOOR
1080@interface MAMapView (Indoor)
1084@property (nonatomic, getter = isShowsIndoorMap) BOOL showsIndoorMap;
1088@property (nonatomic, getter = isShowsIndoorMapControl) BOOL showsIndoorMapControl;
1092@property (nonatomic, readonly) CGSize indoorMapControlSize;
1100- (void)setIndoorMapControlOrigin:(CGPoint)origin;
1108- (void)setCurrentIndoorMapFloorIndex:(NSInteger)floorIndex;
1114- (void)clearIndoorMapCache;
1121@interface MAMapView (CustomMapStyle)
1125@property (nonatomic, assign) BOOL customMapStyleEnabled;
1139@interface MAMapView (Buildings)
1151- (NSInteger)hideBuildingsWithPolygon:(CLLocationCoordinate2D *)polygon polygonSize:(NSUInteger)polygonSize;
1159- (void)showHiddenBuildingsWithOperationId:(NSInteger)operationId;
1162@interface MAMapView (EngineOverlay)
1173@interface MAMapView (PoiFilter)
1186- (void)removePoiFilter:(NSString *)keyName;
1191- (void)clearPoiFilter;
1194#pragma mark - MAMapViewDelegate
1195@protocol MAMapViewDelegate <NSObject>
1205- (void)mapViewRegionChanged:(
MAMapView *)mapView;
1215- (void)mapView:(
MAMapView *)mapView regionWillChangeAnimated:(BOOL)animated;
1225- (void)mapView:(
MAMapView *)mapView regionDidChangeAnimated:(BOOL)animated;
1237- (void)mapView:(
MAMapView *)mapView regionWillChangeAnimated:(BOOL)animated wasUserAction:(BOOL)wasUserAction;
1249- (void)mapView:(
MAMapView *)mapView regionDidChangeAnimated:(BOOL)animated wasUserAction:(BOOL)wasUserAction;
1259- (void)mapView:(
MAMapView *)mapView mapWillMoveByUser:(BOOL)wasUserAction;
1269- (void)mapView:(
MAMapView *)mapView mapDidMoveByUser:(BOOL)wasUserAction;
1279- (void)mapView:(
MAMapView *)mapView mapWillZoomByUser:(BOOL)wasUserAction;
1289- (void)mapView:(
MAMapView *)mapView mapDidZoomByUser:(BOOL)wasUserAction;
1297- (void)mapViewWillStartLoadingMap:(
MAMapView *)mapView;
1305- (void)mapViewDidFinishLoadingMap:(
MAMapView *)mapView;
1315- (void)mapViewDidFailLoadingMap:(
MAMapView *)mapView withError:(NSError *)error;
1325- (void)mapView:(
MAMapView *)mapView didFailLoadTerrainWithError:(NSError *)error;
1362- (void)mapView:(
MAMapView *)mapView didAddAnnotationViews:(NSArray *)views;
1390- (void)mapViewWillStartLocatingUser:(
MAMapView *)mapView;
1398- (void)mapViewDidStopLocatingUser:(
MAMapView *)mapView;
1410- (void)mapView:(
MAMapView *)mapView didUpdateUserLocation:(
MAUserLocation *)userLocation updatingLocation:(BOOL)updatingLocation;
1419- (void)mapViewRequireLocationAuth:(CLLocationManager *)locationManager;
1429- (void)mapView:(
MAMapView *)mapView didFailToLocateUserWithError:(NSError *)error;
1465- (void)mapView:(
MAMapView *)mapView didAddOverlayRenderers:(NSArray *)overlayRenderers;
1477- (void)mapView:(
MAMapView *)mapView annotationView:(
MAAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control;
1518- (void)mapView:(
MAMapView *)mapView didChangeOpenGLESDisabled:(BOOL)openGLESDisabled __attribute((deprecated("Deprecated, since 7.9.0")));
1528- (void)mapView:(
MAMapView *)mapView didTouchPois:(NSArray *)pois;
1538- (void)mapView:(
MAMapView *)mapView didSingleTappedAtCoordinate:(CLLocationCoordinate2D)coordinate;
1548- (void)mapView:(
MAMapView *)mapView didLongPressedAtCoordinate:(CLLocationCoordinate2D)coordinate;
1556- (void)mapInitComplete:(
MAMapView *)mapView;
1558#if MA_INCLUDE_INDOOR
1568- (void)mapView:(
MAMapView *)mapView didIndoorMapShowed:(MAIndoorInfo *)indoorInfo;
1579- (void)mapView:(
MAMapView *)mapView didIndoorMapFloorIndexChanged:(MAIndoorInfo *)indoorInfo;
1589- (void)mapView:(
MAMapView *)mapView didIndoorMapHidden:(MAIndoorInfo *)indoorInfo;
1598- (void)offlineDataWillReload:(
MAMapView *)mapView;
1606- (void)offlineDataDidReload:(
MAMapView *)mapView;
1613- (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
MALogoLanguage
Definition MAMapView.h:64
@ MALogoLanguageEnglish
Definition MAMapView.h:65
@ MALogoLanguageChinese
Definition MAMapView.h:66
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
MAScaleControlsUnit
Definition MAMapView.h:72
@ MAScaleControlsUnitIMPERIAL
英制 IMPERIAL
Definition MAMapView.h:74
@ MAScaleControlsUnitMETRIC
公制 METRIC
Definition MAMapView.h:73
Definition MAAnnotationView.h:29
Definition MABaseEngineOverlay.h:14
Definition MAMapCustomStyleOptions.h:12
Definition MAMapStatus.h:18
Definition MAMapView.h:98
CLLocationCoordinate2D centerCoordinate
Definition MAMapView.h:121
id< MAMapViewDelegate > delegate
Definition MAMapView.h:113
BOOL showsLabels
Definition MAMapView.h:185
MALogoLanguage logoLanguage
Definition MAMapView.h:244
CGPoint screenAnchor
Definition MAMapView.h:276
NSUInteger maxRenderFrame
Definition MAMapView.h:256
BOOL terrainEnabled
Definition MAMapView.h:105
CGFloat rotationDegree
Definition MAMapView.h:153
NSString * terrainApprovalNumber()
获取地形图审图号。(since 8.2.0) Obtain topographic map approval number(since 8.2.0)
MAMapType mapType
Definition MAMapView.h:117
BOOL showsCompass
Definition MAMapView.h:201
MAMapRect visibleMapRect
Definition MAMapView.h:129
BOOL rotateEnabled
Definition MAMapView.h:173
MATileLoadCallback tileLoadCallback
Definition MAMapView.h:287
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:205
MAMapStatus * getMapStatus()
获取地图状态 Get map status
BOOL showTraffic
Definition MAMapView.h:189
BOOL drawingDisabled
是否强制关闭render,默认NO.地图元素完全不创建
Definition MAMapView.h:272
double metersPerPointForCurrentZoom
Definition MAMapView.h:248
CGPoint scaleOrigin
Definition MAMapView.h:222
CGSize logoSize
Definition MAMapView.h:234
NSRunLoopMode runLoopMode
Definition MAMapView.h:291
CGSize compassSize
Definition MAMapView.h:209
MACoordinateRegion limitRegion
Definition MAMapView.h:133
BOOL zoomEnabled
Definition MAMapView.h:165
MAMapRect limitMapRect
Definition MAMapView.h:137
BOOL showsScale
Definition MAMapView.h:218
CGFloat maxZoomLevel
Definition MAMapView.h:149
MAScaleControlsUnit scaleControlsUnit
Definition MAMapView.h:214
BOOL isAbroad
Definition MAMapView.h:252
void forceRefresh()
强制刷新。(since 6.0.0) Force refresh
BOOL showsBuildings
Definition MAMapView.h:181
void reloadMap()
重新加载地图 Reload the map
BOOL terrainAuth
Definition MAMapView.h:109
CGFloat cameraDegree
Definition MAMapView.h:157
CGFloat minZoomLevel
Definition MAMapView.h:145
CGPoint logoCenter
Definition MAMapView.h:230
MACoordinateRegion region
Definition MAMapView.h:125
BOOL isAllowDecreaseFrame
Definition MAMapView.h:260
CGFloat zoomLevel
Definition MAMapView.h:141
BOOL rotateCameraEnabled
Definition MAMapView.h:177
BOOL loadWorldVectorMap
Definition MAMapView.h:306
BOOL touchPOIEnabled
Definition MAMapView.h:197
CGSize scaleSize
Definition MAMapView.h:226
BOOL logoEnable
Definition MAMapView.h:238
BOOL metalEnabled
Definition MAMapView.h:101
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)
void(^ MATileLoadCallback)(BOOL success, int64_t durationMs, NSString *tileIdentifier)
瓦片加载回调
Definition MAMapView.h:285
NSDictionary< NSNumber *, UIColor * > *trafficStatus __attribute((deprecated("Deprecated since 7.8.0")))
BOOL renderringDisabled
Definition MAMapView.h:268
BOOL scrollEnabled
Definition MAMapView.h:169
BOOL zoomingInPivotsAroundAnchorPoint
Definition MAMapView.h:161
Definition MAOverlayRenderer.h:21
Definition MAPoiFilter.h:22
Definition MAUserLocation.h:19
Definition MAUserLocationRepresentation.h:18
Definition MAGeometry.h:35
Definition MAGeometry.h:56