高德地图SDK(导航)  V11.3.300
MAMapView.h
Go to the documentation of this file.
1 //
2 // MAMapView.h
3 // MAMapKit
4 //
5 // Created by 翁乐 on 3/17/16.
6 // Copyright © 2016 Amap. All rights reserved.
7 //
8 
9 #import "MAConfig.h"
10 #import <Foundation/Foundation.h>
11 #import <UIKit/UIKit.h>
12 #import "MAOverlay.h"
13 #import "MAOverlayRenderer.h"
14 #import "MAAnnotationView.h"
15 #import "MACircle.h"
16 #import "MAUserLocation.h"
17 #import "MAMapStatus.h"
18 #import "MAIndoorInfo.h"
21 #import <AMapFoundationKit/AMapServices.h>
22 #import "MABaseEngineOverlay.h"
23 #import "MAPoiFilter.h"
24 
27 typedef NS_ENUM(NSInteger, MAMapType)
28 {
35 };
36 
39 typedef NS_ENUM(NSInteger, MAUserTrackingMode)
40 {
44 };
45 
48 typedef NS_ENUM(NSInteger, MATrafficStatus)
49 {
55 };
56 
59 typedef NS_ENUM(NSInteger, MAOverlayLevel) {
64 };
65 
66 typedef NS_ENUM(NSUInteger, MALogoLanguage) {
69 };
70 
74 typedef NS_ENUM(NSInteger, MAScaleControlsUnit){
77 };
78 
81 typedef NS_OPTIONS(uint64_t, MAALCLogLevel) {
82  MAALCLogLevelDebug = 1ULL << 3,
83  MAALCLogLevelInfo = 1ULL << 4,
84  MAALCLogLevelWarning = 1ULL << 5,
85  MAALCLogLevelError = 1ULL << 6,
86  MAALCLogLevelFatal = 1ULL << 7,
87  MAALCLogLevelPerformance = 1ULL << 8,
88  MAALCLogLevelTracing = 1ULL << 9,
89  MAALCLogLevelPrismTracing = 1ULL << 10,
90  MAALCLogLevelHeader = 1ULL << 11,
91  MAALCLogLevelAll = MAALCLogLevelDebug
92  | MAALCLogLevelInfo
93  | MAALCLogLevelWarning
94  | MAALCLogLevelError
95  | MAALCLogLevelFatal
96  | MAALCLogLevelPerformance
97  | MAALCLogLevelTracing
98  | MAALCLogLevelPrismTracing
99  | MAALCLogLevelHeader,
100 };
101 
102 #pragma mark - 动画相关的key Animation-related key
105 extern NSString * const kMAMapLayerCenterMapPointKey;
106 
109 extern NSString * const kMAMapLayerZoomLevelKey;
110 
113 extern NSString * const kMAMapLayerRotationDegreeKey;
114 
117 extern NSString * const kMAMapLayerCameraDegreeKey;
118 
119 
120 @protocol MAMapViewDelegate;
121 
122 @interface MAMapView : UIView
123 
126 @property (nonatomic, assign, class) BOOL metalEnabled;
127 
130 @property (nonatomic, assign, class) BOOL terrainEnabled;
131 
134 @property (nonatomic, assign, readonly) BOOL terrainAuth;
135 
138 @property (nonatomic, weak) id<MAMapViewDelegate> delegate;
139 
142 @property (nonatomic) MAMapType mapType;
143 
146 @property (nonatomic) CLLocationCoordinate2D centerCoordinate;
147 
150 @property (nonatomic) MACoordinateRegion region;
151 
154 @property (nonatomic) MAMapRect visibleMapRect;
155 
158 @property (nonatomic, assign) MACoordinateRegion limitRegion;
159 
162 @property (nonatomic, assign) MAMapRect limitMapRect;
163 
166 @property (nonatomic) CGFloat zoomLevel;
167 
170 @property (nonatomic) CGFloat minZoomLevel;
171 
174 @property (nonatomic) CGFloat maxZoomLevel;
175 
178 @property (nonatomic) CGFloat rotationDegree;
179 
182 @property (nonatomic) CGFloat cameraDegree;
183 
186 @property (nonatomic, assign) BOOL zoomingInPivotsAroundAnchorPoint;
187 
190 @property (nonatomic, getter = isZoomEnabled) BOOL zoomEnabled;
191 
194 @property (nonatomic, getter = isScrollEnabled) BOOL scrollEnabled;
195 
198 @property (nonatomic, getter = isRotateEnabled) BOOL rotateEnabled;
199 
202 @property (nonatomic, getter = isRotateCameraEnabled) BOOL rotateCameraEnabled;
203 
206 @property (nonatomic, getter = isShowsBuildings) BOOL showsBuildings;
207 
210 @property (nonatomic, assign, getter = isShowsLabels) BOOL showsLabels;
211 
216 @property (nonatomic, assign, getter = isShowsRoads) BOOL showsRoads;
217 
220 @property (nonatomic, assign, getter = isShowsLocalLanguage) BOOL showsLocalLanguage;
221 
224 @property (nonatomic, getter = isShowTraffic) BOOL showTraffic;
225 
228 @property (nonatomic, copy) NSDictionary <NSNumber *, UIColor *> *trafficStatus __attribute((deprecated("Deprecated since 7.8.0")));
229 
232 @property (nonatomic, assign) BOOL touchPOIEnabled;
233 
236 @property (nonatomic, assign) BOOL showsCompass;
237 
240 @property (nonatomic, assign) CGPoint compassOrigin;
241 
244 @property (nonatomic, readonly) CGSize compassSize;
245 
249 @property (nonatomic, assign) MAScaleControlsUnit scaleControlsUnit;
250 
253 @property (nonatomic, assign) BOOL showsScale;
254 
257 @property (nonatomic, assign) CGPoint scaleOrigin;
258 
261 @property (nonatomic, readonly) CGSize scaleSize;
262 
265 @property (nonatomic, assign) CGPoint logoCenter;
266 
269 @property (nonatomic, readonly) CGSize logoSize;
270 
274 @property (nonatomic, assign) CGFloat logoSizeScale;
275 
278 @property (nonatomic, assign) BOOL logoEnable;
279 
284 @property (nonatomic, assign) MALogoLanguage logoLanguage;
285 
288 @property (nonatomic, readonly) double metersPerPointForCurrentZoom;
289 
292 @property (nonatomic, readonly) BOOL isAbroad;
293 
296 @property (nonatomic, assign) NSUInteger maxRenderFrame;
297 
300 @property (nonatomic, assign) BOOL isAllowDecreaseFrame;
301 
304 @property (nonatomic, assign) BOOL openGLESDisabled __attribute((deprecated("Deprecated, since 7.9.0, please use the renderringDisabled property")));
305 
308 @property (nonatomic, assign) BOOL renderringDisabled;
309 
311 //disable map drawing, default NO
312 @property (nonatomic, assign) BOOL drawingDisabled;
313 
316 @property (nonatomic, assign) CGPoint screenAnchor;
317 
325 typedef void (^MATileLoadCallback)(BOOL success, int64_t durationMs, NSString *tileIdentifier);
326 
327 @property (nonatomic, copy) MATileLoadCallback tileLoadCallback;
328 
331 typedef NS_ENUM(NSInteger, MATileRequestLogLevel) {
335 };
336 
337 @property (nonatomic, assign, class) MATileRequestLogLevel tileRequestLogLevel;
338 
341 @property (nonatomic, copy) NSRunLoopMode runLoopMode;
342 
345 #if MA_INCLUDE_WORLD_EN_MAP
346 @property (nonatomic, strong) NSNumber *mapLanguage;
347 #endif
348 
349 // 注意:在使用地图功能前,请通过 [AMapServices sharedServices].regionLanguageType 来设置语言类型 (since 11.2.000)
352 // @property (nonatomic, assign, class) AMapRegionLanguageType regionLanguageType;
353 
356 @property (nonatomic, assign, class) BOOL loadWorldVectorMap;
357 
366 - (instancetype)initWithFrame:(CGRect)frame isNavi:(BOOL)isNavi;
367 
374 - (instancetype)initWithFrame:(CGRect)frame scaleFactor:(CGFloat)scaleFactor;
375 
376 
385 - (void)setRegion:(MACoordinateRegion)region animated:(BOOL)animated;
386 
395 - (MACoordinateRegion)regionThatFits:(MACoordinateRegion)region;
396 
405 - (void)setVisibleMapRect:(MAMapRect)mapRect animated:(BOOL)animated;
406 
415 - (MAMapRect)mapRectThatFits:(MAMapRect)mapRect;
416 
427 - (MAMapRect)mapRectThatFits:(MAMapRect)mapRect edgePadding:(UIEdgeInsets)insets;
428 
439 - (void)setVisibleMapRect:(MAMapRect)mapRect edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated;
440 
453 - (void)setVisibleMapRect:(MAMapRect)mapRect edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated duration:(CFTimeInterval)duration;
454 
463 - (void)setCenterCoordinate:(CLLocationCoordinate2D)coordinate animated:(BOOL)animated;
464 
473 - (void)setZoomLevel:(CGFloat)zoomLevel animated:(BOOL)animated;
474 
485 - (void)setZoomLevel:(CGFloat)zoomLevel atPivot:(CGPoint)pivot animated:(BOOL)animated;
486 
497 - (void)setRotationDegree:(CGFloat)rotationDegree animated:(BOOL)animated duration:(CFTimeInterval)duration;
498 
509 - (void)setCameraDegree:(CGFloat)cameraDegree animated:(BOOL)animated duration:(CFTimeInterval)duration;
510 
518 
519 
528 - (void)setMapStatus:(MAMapStatus *)status animated:(BOOL)animated;
529 
540 - (void)setMapStatus:(MAMapStatus *)status
541  animated:(BOOL)animated
542  duration:(CFTimeInterval)duration;
543 
550 - (void)setCompassImage:(UIImage *)image;
551 
560 - (UIImage *)takeSnapshotInRect:(CGRect)rect __attribute((deprecated("Deprecated, please use the takeSnapshotInRect:withCompletionBlock: method since 6.0.0")));
561 
570 - (void)takeSnapshotInRect:(CGRect)rect withCompletionBlock:(void (^)(UIImage *resultImage, NSInteger state))block;
571 
582 - (void)takeSnapshotInRect:(CGRect)rect timeoutInterval:(NSTimeInterval)timeout completionBlock:(void (^)(UIImage *resultImage, NSInteger state))block;
583 
592 - (double)metersPerPointForZoomLevel:(CGFloat)zoomLevel;
593 
604 - (CGPoint)convertCoordinate:(CLLocationCoordinate2D)coordinate toPointToView:(UIView *)view;
605 
616 - (CLLocationCoordinate2D)convertPoint:(CGPoint)point toCoordinateFromView:(UIView *)view;
617 
628 - (CGRect)convertRegion:(MACoordinateRegion)region toRectToView:(UIView *)view;
629 
640 - (MACoordinateRegion)convertRect:(CGRect)rect toRegionFromView:(UIView *)view;
641 
651 - (void)reloadMap;
652 
657 - (void)clearDisk;
658 
663 - (void)reloadInternalTexture;
664 
671 - (NSString *)mapContentApprovalNumber;
672 
679 - (NSString *)satelliteImageApprovalNumber;
680 
687 - (NSString *)terrainApprovalNumber;
688 
701 - (void)addAnimationWith:(CAKeyframeAnimation *)mapCenterAnimation
702  zoomAnimation:(CAKeyframeAnimation *)zoomAnimation
703  rotateAnimation:(CAKeyframeAnimation *)rotateAnimation
704  cameraDegreeAnimation:(CAKeyframeAnimation *)cameraDegreeAnimation;
705 
710 - (void)forceRefresh;
711 
718 - (void)setConstructingRoadEnable:(BOOL)enabled;
719 
720 - (void)setMapOptRecordState:(BOOL)state;
721 
722 #pragma mark - ALC Log
731 + (void)setAlcLogConfig:(MAALCLogLevel)loglevelMask recordStorage:(BOOL)recordStorage;
732 
733 #pragma mark - Privacy 隐私合规 Privacy compliance
742 + (void)updatePrivacyShow:(AMapPrivacyShowStatus)showStatus privacyInfo:(AMapPrivacyInfoStatus)containStatus;
749 + (void)updatePrivacyAgree:(AMapPrivacyAgreeStatus)agreeStatus;
750 
751 @end
752 
754 
757 @property (nonatomic, readonly) NSArray *annotations;
758 
761 @property (nonatomic, copy) NSArray *selectedAnnotations;
762 
765 @property (nonatomic, readonly) CGRect annotationVisibleRect;
766 
773 - (void)addAnnotation:(id <MAAnnotation>)annotation;
774 
781 - (void)addAnnotations:(NSArray *)annotations;
782 
789 - (void)removeAnnotation:(id <MAAnnotation>)annotation;
790 
797 - (void)removeAnnotations:(NSArray *)annotations;
798 
807 - (NSSet *)annotationsInMapRect:(MAMapRect)mapRect;
808 
817 - (MAAnnotationView *)viewForAnnotation:(id <MAAnnotation>)annotation;
818 
827 - (MAAnnotationView *)dequeueReusableAnnotationViewWithIdentifier:(NSString *)identifier;
828 
837 - (void)selectAnnotation:(id <MAAnnotation>)annotation animated:(BOOL)animated;
838 
847 - (void)deselectAnnotation:(id <MAAnnotation>)annotation animated:(BOOL)animated;
848 
857 - (void)showAnnotations:(NSArray *)annotations animated:(BOOL)animated;
858 
869 - (void)showAnnotations:(NSArray *)annotations edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated;
870 
871 @end
872 
873 
875 
878 @property (nonatomic) BOOL showsUserLocation;
879 
882 @property (nonatomic, readonly) MAUserLocation *userLocation;
883 
887 
890 @property (nonatomic, readonly) MACircle *userLocationAccuracyCircle;
891 
894 @property (nonatomic) MAUserTrackingMode userTrackingMode;
895 
898 @property (nonatomic, readonly, getter=isUserLocationVisible) BOOL userLocationVisible;
899 
902 @property (nonatomic) CLLocationDistance distanceFilter;
903 
906 @property (nonatomic) CLLocationAccuracy desiredAccuracy;
907 
910 @property (nonatomic) CLLocationDegrees headingFilter;
911 
914 @property (nonatomic) BOOL pausesLocationUpdatesAutomatically;
915 
918 @property (nonatomic) BOOL allowsBackgroundLocationUpdates;
919 
928 - (void)setUserTrackingMode:(MAUserTrackingMode)mode animated:(BOOL)animated;
929 
936 - (void)updateUserLocationRepresentation:(MAUserLocationRepresentation *)representation;
937 
938 @end
939 
941 
944 @property (nonatomic, readonly) NSArray *overlays;
945 
952 - (NSArray *)overlaysInLevel:(MAOverlayLevel)level;
953 
964 - (void)addOverlay:(id <MAOverlay>)overlay;
965 
974 - (void)addOverlays:(NSArray *)overlays;
975 
984 - (void)addOverlay:(id <MAOverlay>)overlay level:(MAOverlayLevel)level;
985 
994 - (void)addOverlays:(NSArray *)overlays level:(MAOverlayLevel)level;
995 
1002 - (void)removeOverlay:(id <MAOverlay>)overlay;
1003 
1010 - (void)removeOverlays:(NSArray *)overlays;
1011 
1026 - (void)insertOverlay:(id <MAOverlay>)overlay atIndex:(NSUInteger)index level:(MAOverlayLevel)level;
1027 
1036 - (void)insertOverlay:(id <MAOverlay>)overlay aboveOverlay:(id <MAOverlay>)sibling;
1037 
1046 - (void)insertOverlay:(id <MAOverlay>)overlay belowOverlay:(id <MAOverlay>)sibling;
1047 
1056 - (void)insertOverlay:(id <MAOverlay>)overlay atIndex:(NSUInteger)index;
1057 
1066 - (void)exchangeOverlayAtIndex:(NSUInteger)index1 withOverlayAtIndex:(NSUInteger)index2;
1067 
1078 - (void)exchangeOverlayAtIndex:(NSUInteger)index1 withOverlayAtIndex:(NSUInteger)index2 atLevel:(MAOverlayLevel)level;
1079 
1086 - (void)exchangeOverlay:(id <MAOverlay>)overlay1 withOverlay:(id <MAOverlay>)overlay2;
1087 
1096 - (MAOverlayRenderer *)rendererForOverlay:(id <MAOverlay>)overlay;
1097 
1106 - (void)showOverlays:(NSArray *)overlays animated:(BOOL)animated;
1107 
1118 - (void)showOverlays:(NSArray *)overlays edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated;
1119 
1130 - (NSArray*)getHittedPolylinesWith:(CLLocationCoordinate2D)tappedCoord traverseAll:(BOOL)traverseAll;
1131 
1138 - (void)setCurrentLocation:(CLLocationCoordinate2D)location;
1139 @end
1140 
1141 #if MA_INCLUDE_INDOOR
1143 
1146 @property (nonatomic, getter = isShowsIndoorMap) BOOL showsIndoorMap;
1147 
1150 @property (nonatomic, getter = isShowsIndoorMapControl) BOOL showsIndoorMapControl;
1151 
1154 @property (nonatomic, readonly) CGSize indoorMapControlSize;
1155 
1162 - (void)setIndoorMapControlOrigin:(CGPoint)origin;
1163 
1170 - (void)setCurrentIndoorMapFloorIndex:(NSInteger)floorIndex;
1171 
1176 - (void)clearIndoorMapCache;
1177 
1178 @end
1179 #endif
1180 
1184 
1187 @property (nonatomic, assign) BOOL customMapStyleEnabled;
1188 
1195 - (void)setCustomMapStyleOptions:(MAMapCustomStyleOptions *)styleOptions;
1196 
1197 @end
1198 
1202 
1213 - (NSInteger)hideBuildingsWithPolygon:(CLLocationCoordinate2D *)polygon polygonSize:(NSUInteger)polygonSize;
1214 
1221 - (void)showHiddenBuildingsWithOperationId:(NSInteger)operationId;
1222 @end
1223 
1225 
1232 - (void)addEngineOverlay:(MABaseEngineOverlay *)overlay;
1233 @end
1234 
1241 - (void)addPoiFilter:(MAPoiFilter *)poiFilter;
1248 - (void)removePoiFilter:(NSString *)keyName;
1253 - (void)clearPoiFilter;
1254 @end
1255 
1256 #pragma mark - MAMapViewDelegate
1257 @protocol MAMapViewDelegate <NSObject>
1258 
1259 @optional
1260 
1267 - (void)mapViewRegionChanged:(MAMapView *)mapView;
1268 
1277 - (void)mapView:(MAMapView *)mapView regionWillChangeAnimated:(BOOL)animated;
1278 
1287 - (void)mapView:(MAMapView *)mapView regionDidChangeAnimated:(BOOL)animated;
1288 
1299 - (void)mapView:(MAMapView *)mapView regionWillChangeAnimated:(BOOL)animated wasUserAction:(BOOL)wasUserAction;
1300 
1311 - (void)mapView:(MAMapView *)mapView regionDidChangeAnimated:(BOOL)animated wasUserAction:(BOOL)wasUserAction;
1312 
1321 - (void)mapView:(MAMapView *)mapView mapWillMoveByUser:(BOOL)wasUserAction;
1322 
1331 - (void)mapView:(MAMapView *)mapView mapDidMoveByUser:(BOOL)wasUserAction;
1332 
1341 - (void)mapView:(MAMapView *)mapView mapWillZoomByUser:(BOOL)wasUserAction;
1342 
1351 - (void)mapView:(MAMapView *)mapView mapDidZoomByUser:(BOOL)wasUserAction;
1352 
1359 - (void)mapViewWillStartLoadingMap:(MAMapView *)mapView;
1360 
1367 - (void)mapViewDidFinishLoadingMap:(MAMapView *)mapView;
1368 
1377 - (void)mapViewDidFailLoadingMap:(MAMapView *)mapView withError:(NSError *)error;
1378 
1387 - (void)mapView:(MAMapView *)mapView didFailLoadTerrainWithError:(NSError *)error;
1388 
1414 - (MAAnnotationView *)mapView:(MAMapView *)mapView viewForAnnotation:(id <MAAnnotation>)annotation;
1415 
1424 - (void)mapView:(MAMapView *)mapView didAddAnnotationViews:(NSArray *)views;
1425 
1434 - (void)mapView:(MAMapView *)mapView didSelectAnnotationView:(MAAnnotationView *)view;
1435 
1444 - (void)mapView:(MAMapView *)mapView didDeselectAnnotationView:(MAAnnotationView *)view;
1445 
1452 - (void)mapViewWillStartLocatingUser:(MAMapView *)mapView;
1453 
1460 - (void)mapViewDidStopLocatingUser:(MAMapView *)mapView;
1461 
1472 - (void)mapView:(MAMapView *)mapView didUpdateUserLocation:(MAUserLocation *)userLocation updatingLocation:(BOOL)updatingLocation;
1473 
1481 - (void)mapViewRequireLocationAuth:(CLLocationManager *)locationManager;
1482 
1491 - (void)mapView:(MAMapView *)mapView didFailToLocateUserWithError:(NSError *)error;
1492 
1504 - (void)mapView:(MAMapView *)mapView annotationView:(MAAnnotationView *)view didChangeDragState:(MAAnnotationViewDragState)newState
1505  fromOldState:(MAAnnotationViewDragState)oldState;
1506 
1517 - (MAOverlayRenderer *)mapView:(MAMapView *)mapView rendererForOverlay:(id <MAOverlay>)overlay;
1518 
1527 - (void)mapView:(MAMapView *)mapView didAddOverlayRenderers:(NSArray *)overlayRenderers;
1528 
1539 - (void)mapView:(MAMapView *)mapView annotationView:(MAAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control;
1540 
1549 - (void)mapView:(MAMapView *)mapView didAnnotationViewCalloutTapped:(MAAnnotationView *)view;
1550 
1558 - (void)mapView:(MAMapView *)mapView didAnnotationViewTapped:(MAAnnotationView *)view;
1559 
1570 - (void)mapView:(MAMapView *)mapView didChangeUserTrackingMode:(MAUserTrackingMode)mode animated:(BOOL)animated;
1571 
1580 - (void)mapView:(MAMapView *)mapView didChangeOpenGLESDisabled:(BOOL)openGLESDisabled __attribute((deprecated("Deprecated, since 7.9.0")));
1581 
1590 - (void)mapView:(MAMapView *)mapView didTouchPois:(NSArray *)pois;
1591 
1600 - (void)mapView:(MAMapView *)mapView didSingleTappedAtCoordinate:(CLLocationCoordinate2D)coordinate;
1601 
1610 - (void)mapView:(MAMapView *)mapView didLongPressedAtCoordinate:(CLLocationCoordinate2D)coordinate;
1611 
1618 - (void)mapInitComplete:(MAMapView *)mapView;
1619 
1620 #if MA_INCLUDE_INDOOR
1630 - (void)mapView:(MAMapView *)mapView didIndoorMapShowed:(MAIndoorInfo *)indoorInfo;
1631 
1641 - (void)mapView:(MAMapView *)mapView didIndoorMapFloorIndexChanged:(MAIndoorInfo *)indoorInfo;
1642 
1651 - (void)mapView:(MAMapView *)mapView didIndoorMapHidden:(MAIndoorInfo *)indoorInfo;
1652 #endif //end of MA_INCLUDE_INDOOR
1653 
1660 - (void)offlineDataWillReload:(MAMapView *)mapView;
1661 
1668 - (void)offlineDataDidReload:(MAMapView *)mapView;
1669 
1675 - (void)customMapStyleAuthFailedWithErrorCode:(int)errorCode message:(NSString *)msg;
1676 
1677 @end
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:66
@ MALogoLanguageEnglish
Definition: MAMapView.h:67
@ MALogoLanguageChinese
Definition: MAMapView.h:68
typedef NS_OPTIONS(uint64_t, MAALCLogLevel)
Definition: MAMapView.h:81
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
@ MAOverlayLevelAboveBuildings
在地图楼块之上、底图标注和兴趣点图标之下绘制overlay Draw overlay above map buildings and below map base annotations and POI...
Definition: MAMapView.h:63
@ MAOverlayLevelBeforeBuildings
在地图楼块之下绘制overlay Draw overlay below map buildings
Definition: MAMapView.h:62
@ 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:74
@ MAScaleControlsUnitIMPERIAL
英制 IMPERIAL
Definition: MAMapView.h:76
@ MAScaleControlsUnitMETRIC
公制 METRIC
Definition: MAMapView.h:75
Definition: MAMapView.h:753
NSArray * annotations
Definition: MAMapView.h:757
NSArray * selectedAnnotations
Definition: MAMapView.h:761
CGRect annotationVisibleRect
Definition: MAMapView.h:765
Definition: MAMapView.h:1201
Definition: MAMapView.h:1183
BOOL customMapStyleEnabled
Definition: MAMapView.h:1187
Definition: MAMapView.h:1224
Definition: MAMapView.h:1142
BOOL showsIndoorMapControl
Definition: MAMapView.h:1150
BOOL showsIndoorMap
Definition: MAMapView.h:1146
CGSize indoorMapControlSize
Definition: MAMapView.h:1154
void clearIndoorMapCache()
清空室内地图缓存 Clear indoor map cache
Definition: MAMapView.h:940
NSArray * overlays
Definition: MAMapView.h:944
Definition: MAMapView.h:1235
void clearPoiFilter()
清除poi避让框 Clear POI avoidance frame
Definition: MAMapView.h:874
MAUserLocation * userLocation
Definition: MAMapView.h:882
MACircle * userLocationAccuracyCircle
Definition: MAMapView.h:890
MAUserTrackingMode userTrackingMode
Definition: MAMapView.h:894
CLLocationDistance distanceFilter
Definition: MAMapView.h:902
BOOL allowsBackgroundLocationUpdates
Definition: MAMapView.h:918
BOOL customizeUserLocationAccuracyCircleRepresentation
Definition: MAMapView.h:886
BOOL userLocationVisible
Definition: MAMapView.h:898
BOOL showsUserLocation
Definition: MAMapView.h:878
BOOL pausesLocationUpdatesAutomatically
Definition: MAMapView.h:914
CLLocationDegrees headingFilter
Definition: MAMapView.h:910
CLLocationAccuracy desiredAccuracy
Definition: MAMapView.h:906
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:123
CLLocationCoordinate2D centerCoordinate
Definition: MAMapView.h:146
id< MAMapViewDelegate > delegate
Definition: MAMapView.h:138
BOOL showsLabels
Definition: MAMapView.h:210
MALogoLanguage logoLanguage
Definition: MAMapView.h:284
BOOL showsRoads
Definition: MAMapView.h:216
CGPoint screenAnchor
Definition: MAMapView.h:316
NSUInteger maxRenderFrame
Definition: MAMapView.h:296
BOOL terrainEnabled
Definition: MAMapView.h:130
CGFloat rotationDegree
Definition: MAMapView.h:178
NSString * terrainApprovalNumber()
获取地形图审图号。(since 8.2.0) Obtain topographic map approval number(since 8.2.0)
CGFloat logoSizeScale
Definition: MAMapView.h:274
MAMapType mapType
Definition: MAMapView.h:142
BOOL showsCompass
Definition: MAMapView.h:236
MAMapRect visibleMapRect
Definition: MAMapView.h:154
BOOL rotateEnabled
Definition: MAMapView.h:198
MATileLoadCallback tileLoadCallback
Definition: MAMapView.h:327
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:240
MAMapStatus * getMapStatus()
获取地图状态 Get map status
BOOL showTraffic
Definition: MAMapView.h:224
BOOL drawingDisabled
是否强制关闭render,默认NO.地图元素完全不创建
Definition: MAMapView.h:312
double metersPerPointForCurrentZoom
Definition: MAMapView.h:288
CGPoint scaleOrigin
Definition: MAMapView.h:257
CGSize logoSize
Definition: MAMapView.h:269
NSRunLoopMode runLoopMode
Definition: MAMapView.h:341
CGSize compassSize
Definition: MAMapView.h:244
MATileRequestLogLevel
Definition: MAMapView.h:331
@ MATileRequestLogLevelSummary
Definition: MAMapView.h:333
@ MATileRequestLogLevelDetail
Definition: MAMapView.h:334
@ MATileRequestLogLevelOff
Definition: MAMapView.h:332
MACoordinateRegion limitRegion
Definition: MAMapView.h:158
BOOL zoomEnabled
Definition: MAMapView.h:190
MAMapRect limitMapRect
Definition: MAMapView.h:162
BOOL showsScale
Definition: MAMapView.h:253
NSNumber * mapLanguage
Definition: MAMapView.h:346
CGFloat maxZoomLevel
Definition: MAMapView.h:174
MAScaleControlsUnit scaleControlsUnit
Definition: MAMapView.h:249
BOOL isAbroad
Definition: MAMapView.h:292
void forceRefresh()
强制刷新。(since 6.0.0) Force refresh
BOOL showsBuildings
Definition: MAMapView.h:206
void reloadMap()
重新加载地图 Reload the map
BOOL showsLocalLanguage
Definition: MAMapView.h:220
BOOL terrainAuth
Definition: MAMapView.h:134
NSDictionary< NSNumber *, UIColor * > *trafficStatus __attribute((deprecated("Deprecated since 7.8.0")))
CGFloat cameraDegree
Definition: MAMapView.h:182
CGFloat minZoomLevel
Definition: MAMapView.h:170
CGPoint logoCenter
Definition: MAMapView.h:265
MACoordinateRegion region
Definition: MAMapView.h:150
BOOL isAllowDecreaseFrame
Definition: MAMapView.h:300
CGFloat zoomLevel
Definition: MAMapView.h:166
BOOL rotateCameraEnabled
Definition: MAMapView.h:202
BOOL loadWorldVectorMap
Definition: MAMapView.h:356
BOOL touchPOIEnabled
Definition: MAMapView.h:232
MATileRequestLogLevel tileRequestLogLevel
Definition: MAMapView.h:337
CGSize scaleSize
Definition: MAMapView.h:261
BOOL logoEnable
Definition: MAMapView.h:278
BOOL metalEnabled
Definition: MAMapView.h:126
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:325
BOOL renderringDisabled
Definition: MAMapView.h:308
BOOL scrollEnabled
Definition: MAMapView.h:194
BOOL zoomingInPivotsAroundAnchorPoint
Definition: MAMapView.h:186
Definition: MAOverlayRenderer.h:21
Definition: MAPoiFilter.h:22
Definition: MAUserLocation.h:19
Definition: MAUserLocationRepresentation.h:18
Definition: MAAnnotation.h:17
Definition: MAMapView.h:1257
Definition: MAOverlay.h:15
Definition: MAGeometry.h:35
Definition: MAGeometry.h:56
© 2017 高德信息技术有限公司 版权所有,保留所有权利。