iOS高德地图SDK(3D) V11.2.0001

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"
19 #import "MAUserLocationRepresentation.h"
20 #import "MAMapCustomStyleOptions.h"
21 #import <AMapFoundationKit/AMapServices.h>
22 #import "MABaseEngineOverlay.h"
23 #import "MAPoiFilter.h"
24
27 typedef NS_ENUM(NSInteger, MAMapType)
28 {
29 MAMapTypeStandard = 0,
30 MAMapTypeSatellite,
31 MAMapTypeStandardNight,
32 MAMapTypeNavi,
33 MAMapTypeBus,
34 MAMapTypeNaviNight
35 };
36
39 typedef NS_ENUM(NSInteger, MAUserTrackingMode)
40 {
41 MAUserTrackingModeNone = 0,
42 MAUserTrackingModeFollow = 1,
43 MAUserTrackingModeFollowWithHeading = 2
44 };
45
48 typedef NS_ENUM(NSInteger, MATrafficStatus)
49 {
50 MATrafficStatusSmooth = 1,
51 MATrafficStatusSlow,
52 MATrafficStatusJam,
53 MATrafficStatusSeriousJam,
54 MATrafficStatusExtremelySmooth,
55 };
56
59 typedef NS_ENUM(NSInteger, MAOverlayLevel) {
60 MAOverlayLevelAboveRoads = 0,
61 MAOverlayLevelAboveLabels
62 };
63
64 typedef NS_ENUM(NSUInteger, MALogoLanguage) {
65 MALogoLanguageEnglish,
66 MALogoLanguageChinese,
67 };
68
72 typedef NS_ENUM(NSInteger, MAScaleControlsUnit){
73 MAScaleControlsUnitMETRIC,
74 MAScaleControlsUnitIMPERIAL
75 };
76
77 #pragma mark - 动画相关的key Animation-related key
80 extern NSString * const kMAMapLayerCenterMapPointKey;
81
84 extern NSString * const kMAMapLayerZoomLevelKey;
85
88 extern NSString * const kMAMapLayerRotationDegreeKey;
89
92 extern NSString * const kMAMapLayerCameraDegreeKey;
93
94
95 @protocol MAMapViewDelegate;
96
97 @interface MAMapView : UIView
98
101 @property (nonatomic, assign, class) BOOL metalEnabled;
102
105 @property (nonatomic, assign, class) BOOL terrainEnabled;
106
109 @property (nonatomic, assign, readonly) BOOL terrainAuth;
110
113 @property (nonatomic, weak) id<MAMapViewDelegate> delegate;
114
117 @property (nonatomic) MAMapType mapType;
118
121 @property (nonatomic) CLLocationCoordinate2D centerCoordinate;
122
125 @property (nonatomic) MACoordinateRegion region;
126
129 @property (nonatomic) MAMapRect visibleMapRect;
130
133 @property (nonatomic, assign) MACoordinateRegion limitRegion;
134
137 @property (nonatomic, assign) MAMapRect limitMapRect;
138
141 @property (nonatomic) CGFloat zoomLevel;
142
145 @property (nonatomic) CGFloat minZoomLevel;
146
149 @property (nonatomic) CGFloat maxZoomLevel;
150
153 @property (nonatomic) CGFloat rotationDegree;
154
157 @property (nonatomic) CGFloat cameraDegree;
158
161 @property (nonatomic, assign) BOOL zoomingInPivotsAroundAnchorPoint;
162
165 @property (nonatomic, getter = isZoomEnabled) BOOL zoomEnabled;
166
169 @property (nonatomic, getter = isScrollEnabled) BOOL scrollEnabled;
170
173 @property (nonatomic, getter = isRotateEnabled) BOOL rotateEnabled;
174
177 @property (nonatomic, getter = isRotateCameraEnabled) BOOL rotateCameraEnabled;
178
181 @property (nonatomic, getter = isShowsBuildings) BOOL showsBuildings;
182
185 @property (nonatomic, assign, getter = isShowsLabels) BOOL showsLabels;
186
189 @property (nonatomic, getter = isShowTraffic) BOOL showTraffic;
190
193 @property (nonatomic, copy) NSDictionary <NSNumber *, UIColor *> *trafficStatus __attribute((deprecated("Deprecated since 7.8.0")));
194
197 @property (nonatomic, assign) BOOL touchPOIEnabled;
198
201 @property (nonatomic, assign) BOOL showsCompass;
202
205 @property (nonatomic, assign) CGPoint compassOrigin;
206
209 @property (nonatomic, readonly) CGSize compassSize;
210
214 @property (nonatomic, assign) MAScaleControlsUnit scaleControlsUnit;
215
218 @property (nonatomic, assign) BOOL showsScale;
219
222 @property (nonatomic, assign) CGPoint scaleOrigin;
223
226 @property (nonatomic, readonly) CGSize scaleSize;
227
230 @property (nonatomic, assign) CGPoint logoCenter;
231
234 @property (nonatomic, readonly) CGSize logoSize;
235
238 @property (nonatomic, assign) BOOL logoEnable;
239
244 @property (nonatomic, assign) MALogoLanguage logoLanguage;
245
248 @property (nonatomic, readonly) double metersPerPointForCurrentZoom;
249
252 @property (nonatomic, readonly) BOOL isAbroad;
253
256 @property (nonatomic, assign) NSUInteger maxRenderFrame;
257
260 @property (nonatomic, assign) BOOL isAllowDecreaseFrame;
261
264 @property (nonatomic, assign) BOOL openGLESDisabled __attribute((deprecated("Deprecated, since 7.9.0, please use the renderringDisabled property")));
265
268 @property (nonatomic, assign) BOOL renderringDisabled;
269
271 //disable map drawing, default NO
272 @property (nonatomic, assign) BOOL drawingDisabled;
273
276 @property (nonatomic, assign) CGPoint screenAnchor;
277
285 typedef void (^MATileLoadCallback)(BOOL success, int64_t durationMs, NSString *tileIdentifier);
286
287 @property (nonatomic, copy) MATileLoadCallback tileLoadCallback;
288
291 @property (nonatomic, copy) NSRunLoopMode runLoopMode;
292
295 #if MA_INCLUDE_WORLD_EN_MAP
296 @property (nonatomic, strong) NSNumber *mapLanguage;
297 #endif
298
299 // 注意：在使用地图功能前，请通过 [AMapServices sharedServices].regionLanguageType 来设置语言类型 (since 11.2.000)
302 // @property (nonatomic, assign, class) AMapRegionLanguageType regionLanguageType;
303
306 @property (nonatomic, assign, class) BOOL loadWorldVectorMap;
307
316 - (instancetype)initWithFrame:(CGRect)frame isNavi:(BOOL)isNavi;
317
324 - (instancetype)initWithFrame:(CGRect)frame scaleFactor:(CGFloat)scaleFactor;
325
326
335 - (void)setRegion:(MACoordinateRegion)region animated:(BOOL)animated;
336
345 - (MACoordinateRegion)regionThatFits:(MACoordinateRegion)region;
346
355 - (void)setVisibleMapRect:(MAMapRect)mapRect animated:(BOOL)animated;
356
365 - (MAMapRect)mapRectThatFits:(MAMapRect)mapRect;
366
377 - (MAMapRect)mapRectThatFits:(MAMapRect)mapRect edgePadding:(UIEdgeInsets)insets;
378
389 - (void)setVisibleMapRect:(MAMapRect)mapRect edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated;
390
403 - (void)setVisibleMapRect:(MAMapRect)mapRect edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated duration:(CFTimeInterval)duration;
404
413 - (void)setCenterCoordinate:(CLLocationCoordinate2D)coordinate animated:(BOOL)animated;
414
423 - (void)setZoomLevel:(CGFloat)zoomLevel animated:(BOOL)animated;
424
435 - (void)setZoomLevel:(CGFloat)zoomLevel atPivot:(CGPoint)pivot animated:(BOOL)animated;
436
447 - (void)setRotationDegree:(CGFloat)rotationDegree animated:(BOOL)animated duration:(CFTimeInterval)duration;
448
459 - (void)setCameraDegree:(CGFloat)cameraDegree animated:(BOOL)animated duration:(CFTimeInterval)duration;
460
467 - (MAMapStatus *)getMapStatus;
468
469
478 - (void)setMapStatus:(MAMapStatus *)status animated:(BOOL)animated;
479
490 - (void)setMapStatus:(MAMapStatus *)status
491 animated:(BOOL)animated
492 duration:(CFTimeInterval)duration;
493
500 - (void)setCompassImage:(UIImage *)image;
501
510 - (UIImage *)takeSnapshotInRect:(CGRect)rect __attribute((deprecated("Deprecated, please use the takeSnapshotInRect:withCompletionBlock: method since 6.0.0")));
511
520 - (void)takeSnapshotInRect:(CGRect)rect withCompletionBlock:(void (^)(UIImage *resultImage, NSInteger state))block;
521
532 - (void)takeSnapshotInRect:(CGRect)rect timeoutInterval:(NSTimeInterval)timeout completionBlock:(void (^)(UIImage *resultImage, NSInteger state))block;
533
542 - (double)metersPerPointForZoomLevel:(CGFloat)zoomLevel;
543
554 - (CGPoint)convertCoordinate:(CLLocationCoordinate2D)coordinate toPointToView:(UIView *)view;
555
566 - (CLLocationCoordinate2D)convertPoint:(CGPoint)point toCoordinateFromView:(UIView *)view;
567
578 - (CGRect)convertRegion:(MACoordinateRegion)region toRectToView:(UIView *)view;
579
590 - (MACoordinateRegion)convertRect:(CGRect)rect toRegionFromView:(UIView *)view;
591
601 - (void)reloadMap;
602
607 - (void)clearDisk;
608
613 - (void)reloadInternalTexture;
614
621 - (NSString *)mapContentApprovalNumber;
622
629 - (NSString *)satelliteImageApprovalNumber;
630
637 - (NSString *)terrainApprovalNumber;
638
651 - (void)addAnimationWith:(CAKeyframeAnimation *)mapCenterAnimation
652 zoomAnimation:(CAKeyframeAnimation *)zoomAnimation
653 rotateAnimation:(CAKeyframeAnimation *)rotateAnimation
654 cameraDegreeAnimation:(CAKeyframeAnimation *)cameraDegreeAnimation;
655
660 - (void)forceRefresh;
661
668 - (void)setConstructingRoadEnable:(BOOL)enabled;
669
670 - (void)setMapOptRecordState:(BOOL)state;
671 #pragma mark - Privacy 隐私合规 Privacy compliance
680 + (void)updatePrivacyShow:(AMapPrivacyShowStatus)showStatus privacyInfo:(AMapPrivacyInfoStatus)containStatus;
687 + (void)updatePrivacyAgree:(AMapPrivacyAgreeStatus)agreeStatus;
688
689 @end
690
691 @interface MAMapView (Annotation)
692
695 @property (nonatomic, readonly) NSArray *annotations;
696
699 @property (nonatomic, copy) NSArray *selectedAnnotations;
700
703 @property (nonatomic, readonly) CGRect annotationVisibleRect;
704
711 - (void)addAnnotation:(id <MAAnnotation>)annotation;
712
719 - (void)addAnnotations:(NSArray *)annotations;
720
727 - (void)removeAnnotation:(id <MAAnnotation>)annotation;
728
735 - (void)removeAnnotations:(NSArray *)annotations;
736
745 - (NSSet *)annotationsInMapRect:(MAMapRect)mapRect;
746
755 - (MAAnnotationView *)viewForAnnotation:(id <MAAnnotation>)annotation;
756
765 - (MAAnnotationView *)dequeueReusableAnnotationViewWithIdentifier:(NSString *)identifier;
766
775 - (void)selectAnnotation:(id <MAAnnotation>)annotation animated:(BOOL)animated;
776
785 - (void)deselectAnnotation:(id <MAAnnotation>)annotation animated:(BOOL)animated;
786
795 - (void)showAnnotations:(NSArray *)annotations animated:(BOOL)animated;
796
807 - (void)showAnnotations:(NSArray *)annotations edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated;
808
809 @end
810
811
812 @interface MAMapView (UserLocation)
813
816 @property (nonatomic) BOOL showsUserLocation;
817
820 @property (nonatomic, readonly) MAUserLocation *userLocation;
821
824 @property (nonatomic) BOOL customizeUserLocationAccuracyCircleRepresentation;
825
828 @property (nonatomic, readonly) MACircle *userLocationAccuracyCircle;
829
832 @property (nonatomic) MAUserTrackingMode userTrackingMode;
833
836 @property (nonatomic, readonly, getter=isUserLocationVisible) BOOL userLocationVisible;
837
840 @property (nonatomic) CLLocationDistance distanceFilter;
841
844 @property (nonatomic) CLLocationAccuracy desiredAccuracy;
845
848 @property (nonatomic) CLLocationDegrees headingFilter;
849
852 @property (nonatomic) BOOL pausesLocationUpdatesAutomatically;
853
856 @property (nonatomic) BOOL allowsBackgroundLocationUpdates;
857
866 - (void)setUserTrackingMode:(MAUserTrackingMode)mode animated:(BOOL)animated;
867
874 - (void)updateUserLocationRepresentation:(MAUserLocationRepresentation *)representation;
875
876 @end
877
878 @interface MAMapView (Overlay)
879
882 @property (nonatomic, readonly) NSArray *overlays;
883
890 - (NSArray *)overlaysInLevel:(MAOverlayLevel)level;
891
902 - (void)addOverlay:(id <MAOverlay>)overlay;
903
912 - (void)addOverlays:(NSArray *)overlays;
913
922 - (void)addOverlay:(id <MAOverlay>)overlay level:(MAOverlayLevel)level;
923
932 - (void)addOverlays:(NSArray *)overlays level:(MAOverlayLevel)level;
933
940 - (void)removeOverlay:(id <MAOverlay>)overlay;
941
948 - (void)removeOverlays:(NSArray *)overlays;
949
964 - (void)insertOverlay:(id <MAOverlay>)overlay atIndex:(NSUInteger)index level:(MAOverlayLevel)level;
965
974 - (void)insertOverlay:(id <MAOverlay>)overlay aboveOverlay:(id <MAOverlay>)sibling;
975
984 - (void)insertOverlay:(id <MAOverlay>)overlay belowOverlay:(id <MAOverlay>)sibling;
985
994 - (void)insertOverlay:(id <MAOverlay>)overlay atIndex:(NSUInteger)index;
995
1004 - (void)exchangeOverlayAtIndex:(NSUInteger)index1 withOverlayAtIndex:(NSUInteger)index2;
1005
1016 - (void)exchangeOverlayAtIndex:(NSUInteger)index1 withOverlayAtIndex:(NSUInteger)index2 atLevel:(MAOverlayLevel)level;
1017
1024 - (void)exchangeOverlay:(id <MAOverlay>)overlay1 withOverlay:(id <MAOverlay>)overlay2;
1025
1034 - (MAOverlayRenderer *)rendererForOverlay:(id <MAOverlay>)overlay;
1035
1044 - (void)showOverlays:(NSArray *)overlays animated:(BOOL)animated;
1045
1056 - (void)showOverlays:(NSArray *)overlays edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated;
1057
1068 - (NSArray*)getHittedPolylinesWith:(CLLocationCoordinate2D)tappedCoord traverseAll:(BOOL)traverseAll;
1069
1076 - (void)setCurrentLocation:(CLLocationCoordinate2D)location;
1077 @end
1078
1079 #if MA_INCLUDE_INDOOR
1080 @interface MAMapView (Indoor)
1081
1084 @property (nonatomic, getter = isShowsIndoorMap) BOOL showsIndoorMap;
1085
1088 @property (nonatomic, getter = isShowsIndoorMapControl) BOOL showsIndoorMapControl;
1089
1092 @property (nonatomic, readonly) CGSize indoorMapControlSize;
1093
1100 - (void)setIndoorMapControlOrigin:(CGPoint)origin;
1101
1108 - (void)setCurrentIndoorMapFloorIndex:(NSInteger)floorIndex;
1109
1114 - (void)clearIndoorMapCache;
1115
1116 @end
1117 #endif
1118
1121 @interface MAMapView (CustomMapStyle)
1122
1125 @property (nonatomic, assign) BOOL customMapStyleEnabled;
1126
1133 - (void)setCustomMapStyleOptions:(MAMapCustomStyleOptions *)styleOptions;
1134
1135 @end
1136
1139 @interface MAMapView (Buildings)
1140
1151 - (NSInteger)hideBuildingsWithPolygon:(CLLocationCoordinate2D *)polygon polygonSize:(NSUInteger)polygonSize;
1152
1159 - (void)showHiddenBuildingsWithOperationId:(NSInteger)operationId;
1160 @end
1161
1162 @interface MAMapView (EngineOverlay)
1163
1170 - (void)addEngineOverlay:(MABaseEngineOverlay *)overlay;
1171 @end
1172
1173 @interface MAMapView (PoiFilter)
1179 - (void)addPoiFilter:(MAPoiFilter *)poiFilter;
1186 - (void)removePoiFilter:(NSString *)keyName;
1191 - (void)clearPoiFilter;
1192 @end
1193
1194 #pragma mark - MAMapViewDelegate
1195 @protocol MAMapViewDelegate <NSObject>
1196
1197 @optional
1198
1205 - (void)mapViewRegionChanged:(MAMapView *)mapView;
1206
1215 - (void)mapView:(MAMapView *)mapView regionWillChangeAnimated:(BOOL)animated;
1216
1225 - (void)mapView:(MAMapView *)mapView regionDidChangeAnimated:(BOOL)animated;
1226
1237 - (void)mapView:(MAMapView *)mapView regionWillChangeAnimated:(BOOL)animated wasUserAction:(BOOL)wasUserAction;
1238
1249 - (void)mapView:(MAMapView *)mapView regionDidChangeAnimated:(BOOL)animated wasUserAction:(BOOL)wasUserAction;
1250
1259 - (void)mapView:(MAMapView *)mapView mapWillMoveByUser:(BOOL)wasUserAction;
1260
1269 - (void)mapView:(MAMapView *)mapView mapDidMoveByUser:(BOOL)wasUserAction;
1270
1279 - (void)mapView:(MAMapView *)mapView mapWillZoomByUser:(BOOL)wasUserAction;
1280
1289 - (void)mapView:(MAMapView *)mapView mapDidZoomByUser:(BOOL)wasUserAction;
1290
1297 - (void)mapViewWillStartLoadingMap:(MAMapView *)mapView;
1298
1305 - (void)mapViewDidFinishLoadingMap:(MAMapView *)mapView;
1306
1315 - (void)mapViewDidFailLoadingMap:(MAMapView *)mapView withError:(NSError *)error;
1316
1325 - (void)mapView:(MAMapView *)mapView didFailLoadTerrainWithError:(NSError *)error;
1326
1352 - (MAAnnotationView *)mapView:(MAMapView *)mapView viewForAnnotation:(id <MAAnnotation>)annotation;
1353
1362 - (void)mapView:(MAMapView *)mapView didAddAnnotationViews:(NSArray *)views;
1363
1372 - (void)mapView:(MAMapView *)mapView didSelectAnnotationView:(MAAnnotationView *)view;
1373
1382 - (void)mapView:(MAMapView *)mapView didDeselectAnnotationView:(MAAnnotationView *)view;
1383
1390 - (void)mapViewWillStartLocatingUser:(MAMapView *)mapView;
1391
1398 - (void)mapViewDidStopLocatingUser:(MAMapView *)mapView;
1399
1410 - (void)mapView:(MAMapView *)mapView didUpdateUserLocation:(MAUserLocation *)userLocation updatingLocation:(BOOL)updatingLocation;
1411
1419 - (void)mapViewRequireLocationAuth:(CLLocationManager *)locationManager;
1420
1429 - (void)mapView:(MAMapView *)mapView didFailToLocateUserWithError:(NSError *)error;
1430
1442 - (void)mapView:(MAMapView *)mapView annotationView:(MAAnnotationView *)view didChangeDragState:(MAAnnotationViewDragState)newState
1443 fromOldState:(MAAnnotationViewDragState)oldState;
1444
1455 - (MAOverlayRenderer *)mapView:(MAMapView *)mapView rendererForOverlay:(id <MAOverlay>)overlay;
1456
1465 - (void)mapView:(MAMapView *)mapView didAddOverlayRenderers:(NSArray *)overlayRenderers;
1466
1477 - (void)mapView:(MAMapView *)mapView annotationView:(MAAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control;
1478
1487 - (void)mapView:(MAMapView *)mapView didAnnotationViewCalloutTapped:(MAAnnotationView *)view;
1488
1496 - (void)mapView:(MAMapView *)mapView didAnnotationViewTapped:(MAAnnotationView *)view;
1497
1508 - (void)mapView:(MAMapView *)mapView didChangeUserTrackingMode:(MAUserTrackingMode)mode animated:(BOOL)animated;
1509
1518 - (void)mapView:(MAMapView *)mapView didChangeOpenGLESDisabled:(BOOL)openGLESDisabled __attribute((deprecated("Deprecated, since 7.9.0")));
1519
1528 - (void)mapView:(MAMapView *)mapView didTouchPois:(NSArray *)pois;
1529
1538 - (void)mapView:(MAMapView *)mapView didSingleTappedAtCoordinate:(CLLocationCoordinate2D)coordinate;
1539
1548 - (void)mapView:(MAMapView *)mapView didLongPressedAtCoordinate:(CLLocationCoordinate2D)coordinate;
1549
1556 - (void)mapInitComplete:(MAMapView *)mapView;
1557
1558 #if MA_INCLUDE_INDOOR
1568 - (void)mapView:(MAMapView *)mapView didIndoorMapShowed:(MAIndoorInfo *)indoorInfo;
1569
1579 - (void)mapView:(MAMapView *)mapView didIndoorMapFloorIndexChanged:(MAIndoorInfo *)indoorInfo;
1580
1589 - (void)mapView:(MAMapView *)mapView didIndoorMapHidden:(MAIndoorInfo *)indoorInfo;
1590 #endif //end of MA_INCLUDE_INDOOR
1591
1598 - (void)offlineDataWillReload:(MAMapView *)mapView;
1599
1606 - (void)offlineDataDidReload:(MAMapView *)mapView;
1607
1613 - (void)customMapStyleAuthFailedWithErrorCode:(int)errorCode message:(NSString *)msg;
1614
1615 @end
1616
MAAnnotationView.h
MAAnnotationViewDragState
MAAnnotationViewDragState
Definition: MAAnnotationView.h:16
MABaseEngineOverlay.h
MACircle.h
MAConfig.h
MAIndoorInfo.h
MAMapCustomStyleOptions.h
MAMapStatus.h
kMAMapLayerCenterMapPointKey
NSString *const kMAMapLayerCenterMapPointKey
kMAMapLayerCameraDegreeKey
NSString *const kMAMapLayerCameraDegreeKey
MAMapType
MAMapType
Definition: MAMapView.h:28
MAMapTypeSatellite
@ MAMapTypeSatellite
卫星地图 Satellite Map
Definition: MAMapView.h:30
MAMapTypeNaviNight
@ MAMapTypeNaviNight
导航夜间视图 Navigation Night View
Definition: MAMapView.h:34
MAMapTypeNavi
@ MAMapTypeNavi
导航视图 Navigation View
Definition: MAMapView.h:32
MAMapTypeStandardNight
@ MAMapTypeStandardNight
夜间视图 Night View
Definition: MAMapView.h:31
MAMapTypeStandard
@ MAMapTypeStandard
普通地图 Standard Map
Definition: MAMapView.h:29
MAMapTypeBus
@ MAMapTypeBus
公交视图 Transit View
Definition: MAMapView.h:33
kMAMapLayerZoomLevelKey
NSString *const kMAMapLayerZoomLevelKey
MALogoLanguage
MALogoLanguage
Definition: MAMapView.h:64
MALogoLanguageEnglish
@ MALogoLanguageEnglish
Definition: MAMapView.h:65
MALogoLanguageChinese
@ MALogoLanguageChinese
Definition: MAMapView.h:66
MATrafficStatus
MATrafficStatus
Definition: MAMapView.h:49
MATrafficStatusSmooth
@ MATrafficStatusSmooth
1 通畅 Smooth
Definition: MAMapView.h:50
MATrafficStatusSeriousJam
@ MATrafficStatusSeriousJam
4 严重阻塞 Severely blocked
Definition: MAMapView.h:53
MATrafficStatusSlow
@ MATrafficStatusSlow
2 缓行 Slow-moving
Definition: MAMapView.h:51
MATrafficStatusJam
@ MATrafficStatusJam
3 阻塞 Blocked
Definition: MAMapView.h:52
MATrafficStatusExtremelySmooth
@ MATrafficStatusExtremelySmooth
5 极度通畅 Extremely smooth
Definition: MAMapView.h:54
MAOverlayLevel
MAOverlayLevel
Definition: MAMapView.h:59
MAOverlayLevelAboveRoads
@ MAOverlayLevelAboveRoads
在地图底图标注和兴趣点图标之下绘制overlay Draw overlay below map base annotations and POI icons
Definition: MAMapView.h:60
MAOverlayLevelAboveLabels
@ MAOverlayLevelAboveLabels
在地图底图标注和兴趣点图标之上绘制overlay Draw overlay on top of map base annotations and POI icons
Definition: MAMapView.h:61
kMAMapLayerRotationDegreeKey
NSString *const kMAMapLayerRotationDegreeKey
MAUserTrackingMode
MAUserTrackingMode
Definition: MAMapView.h:40
MAUserTrackingModeFollow
@ MAUserTrackingModeFollow
追踪用户的location更新 Track User's Location Updates
Definition: MAMapView.h:42
MAUserTrackingModeNone
@ MAUserTrackingModeNone
不追踪用户的location更新 Do Not Track User's Location Updates
Definition: MAMapView.h:41
MAUserTrackingModeFollowWithHeading
@ MAUserTrackingModeFollowWithHeading
追踪用户的location与heading更新 Track user's location and heading updates
Definition: MAMapView.h:43
MAScaleControlsUnit
MAScaleControlsUnit
Definition: MAMapView.h:72
MAScaleControlsUnitIMPERIAL
@ MAScaleControlsUnitIMPERIAL
英制 IMPERIAL
Definition: MAMapView.h:74
MAScaleControlsUnitMETRIC
@ MAScaleControlsUnitMETRIC
公制 METRIC
Definition: MAMapView.h:73
MAOverlay.h
MAOverlayRenderer.h
MAPoiFilter.h
MAUserLocation.h
MAUserLocationRepresentation.h
MAMapView(Annotation)
Definition: MAMapView.h:691
MAMapView(Annotation)::annotations
NSArray * annotations
Definition: MAMapView.h:695
MAMapView(Annotation)::selectedAnnotations
NSArray * selectedAnnotations
Definition: MAMapView.h:699
MAMapView(Annotation)::annotationVisibleRect
CGRect annotationVisibleRect
Definition: MAMapView.h:703
MAMapView(Buildings)
Definition: MAMapView.h:1139
MAMapView(CustomMapStyle)
Definition: MAMapView.h:1121
MAMapView(CustomMapStyle)::customMapStyleEnabled
BOOL customMapStyleEnabled
Definition: MAMapView.h:1125
MAMapView(EngineOverlay)
Definition: MAMapView.h:1162
MAMapView(Indoor)
Definition: MAMapView.h:1080
MAMapView(Indoor)::showsIndoorMapControl
BOOL showsIndoorMapControl
Definition: MAMapView.h:1088
MAMapView(Indoor)::showsIndoorMap
BOOL showsIndoorMap
Definition: MAMapView.h:1084
MAMapView(Indoor)::indoorMapControlSize
CGSize indoorMapControlSize
Definition: MAMapView.h:1092
-[MAMapView(Indoor) clearIndoorMapCache]
void clearIndoorMapCache()
清空室内地图缓存 Clear indoor map cache
MAMapView(Overlay)
Definition: MAMapView.h:878
MAMapView(Overlay)::overlays
NSArray * overlays
Definition: MAMapView.h:882
MAMapView(PoiFilter)
Definition: MAMapView.h:1173
-[MAMapView(PoiFilter) clearPoiFilter]
void clearPoiFilter()
清除poi避让框 Clear POI avoidance frame
MAMapView(UserLocation)
Definition: MAMapView.h:812
MAMapView(UserLocation)::userLocation
MAUserLocation * userLocation
Definition: MAMapView.h:820
MAMapView(UserLocation)::userLocationAccuracyCircle
MACircle * userLocationAccuracyCircle
Definition: MAMapView.h:828
MAMapView(UserLocation)::userTrackingMode
MAUserTrackingMode userTrackingMode
Definition: MAMapView.h:832
MAMapView(UserLocation)::distanceFilter
CLLocationDistance distanceFilter
Definition: MAMapView.h:840
MAMapView(UserLocation)::allowsBackgroundLocationUpdates
BOOL allowsBackgroundLocationUpdates
Definition: MAMapView.h:856
MAMapView(UserLocation)::customizeUserLocationAccuracyCircleRepresentation
BOOL customizeUserLocationAccuracyCircleRepresentation
Definition: MAMapView.h:824
MAMapView(UserLocation)::userLocationVisible
BOOL userLocationVisible
Definition: MAMapView.h:836
MAMapView(UserLocation)::showsUserLocation
BOOL showsUserLocation
Definition: MAMapView.h:816
MAMapView(UserLocation)::pausesLocationUpdatesAutomatically
BOOL pausesLocationUpdatesAutomatically
Definition: MAMapView.h:852
MAMapView(UserLocation)::headingFilter
CLLocationDegrees headingFilter
Definition: MAMapView.h:848
MAMapView(UserLocation)::desiredAccuracy
CLLocationAccuracy desiredAccuracy
Definition: MAMapView.h:844
MAAnnotationView
Definition: MAAnnotationView.h:29
MABaseEngineOverlay
Definition: MABaseEngineOverlay.h:14
MACircle
Definition: MACircle.h:15
MAIndoorInfo
Definition: MAIndoorInfo.h:35
MAMapCustomStyleOptions
Definition: MAMapCustomStyleOptions.h:12
MAMapStatus
Definition: MAMapStatus.h:18
MAMapView
Definition: MAMapView.h:98
MAMapView::centerCoordinate
CLLocationCoordinate2D centerCoordinate
Definition: MAMapView.h:121
MAMapView::delegate
id< MAMapViewDelegate > delegate
Definition: MAMapView.h:113
MAMapView::showsLabels
BOOL showsLabels
Definition: MAMapView.h:185
MAMapView::logoLanguage
MALogoLanguage logoLanguage
Definition: MAMapView.h:244
MAMapView::screenAnchor
CGPoint screenAnchor
Definition: MAMapView.h:276
MAMapView::maxRenderFrame
NSUInteger maxRenderFrame
Definition: MAMapView.h:256
MAMapView::terrainEnabled
BOOL terrainEnabled
Definition: MAMapView.h:105
MAMapView::rotationDegree
CGFloat rotationDegree
Definition: MAMapView.h:153
-[MAMapView terrainApprovalNumber]
NSString * terrainApprovalNumber()
获取地形图审图号。（since 8.2.0） Obtain topographic map approval number（since 8.2.0）
MAMapView::mapType
MAMapType mapType
Definition: MAMapView.h:117
MAMapView::showsCompass
BOOL showsCompass
Definition: MAMapView.h:201
MAMapView::visibleMapRect
MAMapRect visibleMapRect
Definition: MAMapView.h:129
MAMapView::rotateEnabled
BOOL rotateEnabled
Definition: MAMapView.h:173
MAMapView::tileLoadCallback
MATileLoadCallback tileLoadCallback
Definition: MAMapView.h:287
-[MAMapView mapContentApprovalNumber]
NSString * mapContentApprovalNumber()
获取地图审图号。如果启用了“自定义样式”功能(customMapStyleEnabled 为 YES)，则返回nil。（since 5.4.0） Obtain the map approval numb...
-[MAMapView reloadInternalTexture]
void reloadInternalTexture()
重新加载内部纹理，在纹理被错误释放时可以执行此方法。（since 5.4.0） Reload internal textures, this method can be executed when te...
MAMapView::compassOrigin
CGPoint compassOrigin
Definition: MAMapView.h:205
-[MAMapView getMapStatus]
MAMapStatus * getMapStatus()
获取地图状态 Get map status
MAMapView::showTraffic
BOOL showTraffic
Definition: MAMapView.h:189
MAMapView::drawingDisabled
BOOL drawingDisabled
是否强制关闭render，默认NO.地图元素完全不创建
Definition: MAMapView.h:272
MAMapView::metersPerPointForCurrentZoom
double metersPerPointForCurrentZoom
Definition: MAMapView.h:248
MAMapView::scaleOrigin
CGPoint scaleOrigin
Definition: MAMapView.h:222
MAMapView::logoSize
CGSize logoSize
Definition: MAMapView.h:234
MAMapView::runLoopMode
NSRunLoopMode runLoopMode
Definition: MAMapView.h:291
MAMapView::compassSize
CGSize compassSize
Definition: MAMapView.h:209
MAMapView::limitRegion
MACoordinateRegion limitRegion
Definition: MAMapView.h:133
MAMapView::zoomEnabled
BOOL zoomEnabled
Definition: MAMapView.h:165
MAMapView::limitMapRect
MAMapRect limitMapRect
Definition: MAMapView.h:137
MAMapView::showsScale
BOOL showsScale
Definition: MAMapView.h:218
MAMapView::mapLanguage
NSNumber * mapLanguage
Definition: MAMapView.h:296
MAMapView::maxZoomLevel
CGFloat maxZoomLevel
Definition: MAMapView.h:149
MAMapView::scaleControlsUnit
MAScaleControlsUnit scaleControlsUnit
Definition: MAMapView.h:214
MAMapView::isAbroad
BOOL isAbroad
Definition: MAMapView.h:252
-[MAMapView forceRefresh]
void forceRefresh()
强制刷新。（since 6.0.0） Force refresh
MAMapView::showsBuildings
BOOL showsBuildings
Definition: MAMapView.h:181
-[MAMapView reloadMap]
void reloadMap()
重新加载地图 Reload the map
MAMapView::terrainAuth
BOOL terrainAuth
Definition: MAMapView.h:109
-[MAMapView __attribute]
NSDictionary< NSNumber *, UIColor * > *trafficStatus __attribute((deprecated("Deprecated since 7.8.0")))
MAMapView::cameraDegree
CGFloat cameraDegree
Definition: MAMapView.h:157
MAMapView::minZoomLevel
CGFloat minZoomLevel
Definition: MAMapView.h:145
MAMapView::logoCenter
CGPoint logoCenter
Definition: MAMapView.h:230
MAMapView::region
MACoordinateRegion region
Definition: MAMapView.h:125
MAMapView::isAllowDecreaseFrame
BOOL isAllowDecreaseFrame
Definition: MAMapView.h:260
MAMapView::zoomLevel
CGFloat zoomLevel
Definition: MAMapView.h:141
MAMapView::rotateCameraEnabled
BOOL rotateCameraEnabled
Definition: MAMapView.h:177
MAMapView::loadWorldVectorMap
BOOL loadWorldVectorMap
Definition: MAMapView.h:306
MAMapView::touchPOIEnabled
BOOL touchPOIEnabled
Definition: MAMapView.h:197
MAMapView::scaleSize
CGSize scaleSize
Definition: MAMapView.h:226
MAMapView::logoEnable
BOOL logoEnable
Definition: MAMapView.h:238
MAMapView::metalEnabled
BOOL metalEnabled
Definition: MAMapView.h:101
-[MAMapView clearDisk]
void clearDisk()
清除所有磁盘上缓存的地图数据(不包括离线地图) Clear all cached map data on disk (excluding offline maps)
-[MAMapView __attribute]
BOOL openGLESDisabled __attribute((deprecated("Deprecated, since 7.9.0, please use the renderringDisabled property")))
-[MAMapView satelliteImageApprovalNumber]
NSString * satelliteImageApprovalNumber()
获取卫星图片审图号。（since 5.4.0） Obtain satellite image approval number （since 5.4.0）
MAMapView::MATileLoadCallback
void(^ MATileLoadCallback)(BOOL success, int64_t durationMs, NSString *tileIdentifier)
瓦片加载回调
Definition: MAMapView.h:285
MAMapView::renderringDisabled
BOOL renderringDisabled
Definition: MAMapView.h:268
MAMapView::scrollEnabled
BOOL scrollEnabled
Definition: MAMapView.h:169
MAMapView::zoomingInPivotsAroundAnchorPoint
BOOL zoomingInPivotsAroundAnchorPoint
Definition: MAMapView.h:161
MAOverlayRenderer
Definition: MAOverlayRenderer.h:21
MAPoiFilter
Definition: MAPoiFilter.h:22
MAUserLocation
Definition: MAUserLocation.h:19
MAUserLocationRepresentation
Definition: MAUserLocationRepresentation.h:18
MAAnnotation-p
Definition: MAAnnotation.h:17
MAMapViewDelegate-p
Definition: MAMapView.h:1195
MAOverlay-p
Definition: MAOverlay.h:15
MACoordinateRegion
Definition: MAGeometry.h:35
MAMapRect
Definition: MAGeometry.h:56
© 2017 高德信息技术有限公司 版权所有，保留所有权利。