10 #import <Foundation/Foundation.h>
11 #import <UIKit/UIKit.h>
21 #import <AMapFoundationKit/AMapServices.h>
77 #pragma mark - 动画相关的key Animation-related key
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
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;
719 - (void)addAnnotations:(NSArray *)annotations;
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;
902 - (void)addOverlay:(
id <
MAOverlay>)overlay;
912 - (void)addOverlays:(NSArray *)overlays;
932 - (void)addOverlays:(NSArray *)overlays level:(
MAOverlayLevel)level;
940 - (void)removeOverlay:(
id <
MAOverlay>)overlay;
948 - (void)removeOverlays:(NSArray *)overlays;
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
1100 - (void)setIndoorMapControlOrigin:(CGPoint)origin;
1108 - (void)setCurrentIndoorMapFloorIndex:(NSInteger)floorIndex;
1151 - (NSInteger)hideBuildingsWithPolygon:(CLLocationCoordinate2D *)polygon polygonSize:(NSUInteger)polygonSize;
1159 - (void)showHiddenBuildingsWithOperationId:(NSInteger)operationId;
1186 - (void)removePoiFilter:(NSString *)keyName;
1194 #pragma mark - MAMapViewDelegate
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
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: MAMapView.h:691
NSArray * annotations
Definition: MAMapView.h:695
NSArray * selectedAnnotations
Definition: MAMapView.h:699
CGRect annotationVisibleRect
Definition: MAMapView.h:703
Definition: MAMapView.h:1139
Definition: MAMapView.h:1121
BOOL customMapStyleEnabled
Definition: MAMapView.h:1125
Definition: MAMapView.h:1162
Definition: MAMapView.h:1080
BOOL showsIndoorMapControl
Definition: MAMapView.h:1088
BOOL showsIndoorMap
Definition: MAMapView.h:1084
CGSize indoorMapControlSize
Definition: MAMapView.h:1092
void clearIndoorMapCache()
清空室内地图缓存 Clear indoor map cache
Definition: MAMapView.h:878
NSArray * overlays
Definition: MAMapView.h:882
Definition: MAMapView.h:1173
void clearPoiFilter()
清除poi避让框 Clear POI avoidance frame
Definition: MAMapView.h:812
MAUserLocation * userLocation
Definition: MAMapView.h:820
MACircle * userLocationAccuracyCircle
Definition: MAMapView.h:828
MAUserTrackingMode userTrackingMode
Definition: MAMapView.h:832
CLLocationDistance distanceFilter
Definition: MAMapView.h:840
BOOL allowsBackgroundLocationUpdates
Definition: MAMapView.h:856
BOOL customizeUserLocationAccuracyCircleRepresentation
Definition: MAMapView.h:824
BOOL userLocationVisible
Definition: MAMapView.h:836
BOOL showsUserLocation
Definition: MAMapView.h:816
BOOL pausesLocationUpdatesAutomatically
Definition: MAMapView.h:852
CLLocationDegrees headingFilter
Definition: MAMapView.h:848
CLLocationAccuracy desiredAccuracy
Definition: MAMapView.h:844
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: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
NSNumber * mapLanguage
Definition: MAMapView.h:296
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
NSDictionary< NSNumber *, UIColor * > *trafficStatus __attribute((deprecated("Deprecated since 7.8.0")))
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
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: MAAnnotation.h:17
Definition: MAMapView.h:1195
Definition: MAOverlay.h:15
Definition: MAGeometry.h:35
Definition: MAGeometry.h:56