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"
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) {
62 };
63 
64 typedef NS_ENUM(NSUInteger, MALogoLanguage) {
67 };
68 
72 typedef NS_ENUM(NSInteger, MAScaleControlsUnit){
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 
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 
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 
813 
816 @property (nonatomic) BOOL showsUserLocation;
817 
820 @property (nonatomic, readonly) MAUserLocation *userLocation;
821 
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 
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
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 
1122 
1125 @property (nonatomic, assign) BOOL customMapStyleEnabled;
1126 
1133 - (void)setCustomMapStyleOptions:(MAMapCustomStyleOptions *)styleOptions;
1134 
1135 @end
1136 
1140 
1151 - (NSInteger)hideBuildingsWithPolygon:(CLLocationCoordinate2D *)polygon polygonSize:(NSUInteger)polygonSize;
1152 
1159 - (void)showHiddenBuildingsWithOperationId:(NSInteger)operationId;
1160 @end
1161 
1163 
1170 - (void)addEngineOverlay:(MABaseEngineOverlay *)overlay;
1171 @end
1172 
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 
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
© 2017 高德信息技术有限公司 版权所有,保留所有权利。