高德地图SDK(导航) V11.2.100
Loading...
Searching...
No Matches
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>
23#import "MAPoiFilter.h"
24
36
45
56
65
70
78
81typedef 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
105extern NSString * const kMAMapLayerCenterMapPointKey;
106
109extern NSString * const kMAMapLayerZoomLevelKey;
110
113extern NSString * const kMAMapLayerRotationDegreeKey;
114
117extern 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
214@property (nonatomic, assign, getter = isShowsLocalLanguage) BOOL showsLocalLanguage;
215
218@property (nonatomic, getter = isShowTraffic) BOOL showTraffic;
219
222@property (nonatomic, copy) NSDictionary <NSNumber *, UIColor *> *trafficStatus __attribute((deprecated("Deprecated since 7.8.0")));
223
226@property (nonatomic, assign) BOOL touchPOIEnabled;
227
230@property (nonatomic, assign) BOOL showsCompass;
231
234@property (nonatomic, assign) CGPoint compassOrigin;
235
238@property (nonatomic, readonly) CGSize compassSize;
239
243@property (nonatomic, assign) MAScaleControlsUnit scaleControlsUnit;
244
247@property (nonatomic, assign) BOOL showsScale;
248
251@property (nonatomic, assign) CGPoint scaleOrigin;
252
255@property (nonatomic, readonly) CGSize scaleSize;
256
259@property (nonatomic, assign) CGPoint logoCenter;
260
263@property (nonatomic, readonly) CGSize logoSize;
264
268@property (nonatomic, assign) CGFloat logoSizeScale;
269
272@property (nonatomic, assign) BOOL logoEnable;
273
278@property (nonatomic, assign) MALogoLanguage logoLanguage;
279
282@property (nonatomic, readonly) double metersPerPointForCurrentZoom;
283
286@property (nonatomic, readonly) BOOL isAbroad;
287
290@property (nonatomic, assign) NSUInteger maxRenderFrame;
291
294@property (nonatomic, assign) BOOL isAllowDecreaseFrame;
295
298@property (nonatomic, assign) BOOL openGLESDisabled __attribute((deprecated("Deprecated, since 7.9.0, please use the renderringDisabled property")));
299
302@property (nonatomic, assign) BOOL renderringDisabled;
303
305//disable map drawing, default NO
306@property (nonatomic, assign) BOOL drawingDisabled;
307
310@property (nonatomic, assign) CGPoint screenAnchor;
311
319typedef void (^MATileLoadCallback)(BOOL success, int64_t durationMs, NSString *tileIdentifier);
320
321@property (nonatomic, copy) MATileLoadCallback tileLoadCallback;
322
325@property (nonatomic, copy) NSRunLoopMode runLoopMode;
326
329#if MA_INCLUDE_WORLD_EN_MAP
330@property (nonatomic, strong) NSNumber *mapLanguage;
331#endif
332
333// 注意:在使用地图功能前,请通过 [AMapServices sharedServices].regionLanguageType 来设置语言类型 (since 11.2.000)
336// @property (nonatomic, assign, class) AMapRegionLanguageType regionLanguageType;
337
340@property (nonatomic, assign, class) BOOL loadWorldVectorMap;
341
350- (instancetype)initWithFrame:(CGRect)frame isNavi:(BOOL)isNavi;
351
358- (instancetype)initWithFrame:(CGRect)frame scaleFactor:(CGFloat)scaleFactor;
359
360
369- (void)setRegion:(MACoordinateRegion)region animated:(BOOL)animated;
370
379- (MACoordinateRegion)regionThatFits:(MACoordinateRegion)region;
380
389- (void)setVisibleMapRect:(MAMapRect)mapRect animated:(BOOL)animated;
390
399- (MAMapRect)mapRectThatFits:(MAMapRect)mapRect;
400
411- (MAMapRect)mapRectThatFits:(MAMapRect)mapRect edgePadding:(UIEdgeInsets)insets;
412
423- (void)setVisibleMapRect:(MAMapRect)mapRect edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated;
424
437- (void)setVisibleMapRect:(MAMapRect)mapRect edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated duration:(CFTimeInterval)duration;
438
447- (void)setCenterCoordinate:(CLLocationCoordinate2D)coordinate animated:(BOOL)animated;
448
457- (void)setZoomLevel:(CGFloat)zoomLevel animated:(BOOL)animated;
458
469- (void)setZoomLevel:(CGFloat)zoomLevel atPivot:(CGPoint)pivot animated:(BOOL)animated;
470
481- (void)setRotationDegree:(CGFloat)rotationDegree animated:(BOOL)animated duration:(CFTimeInterval)duration;
482
493- (void)setCameraDegree:(CGFloat)cameraDegree animated:(BOOL)animated duration:(CFTimeInterval)duration;
494
502
503
512- (void)setMapStatus:(MAMapStatus *)status animated:(BOOL)animated;
513
524- (void)setMapStatus:(MAMapStatus *)status
525 animated:(BOOL)animated
526 duration:(CFTimeInterval)duration;
527
534- (void)setCompassImage:(UIImage *)image;
535
544- (UIImage *)takeSnapshotInRect:(CGRect)rect __attribute((deprecated("Deprecated, please use the takeSnapshotInRect:withCompletionBlock: method since 6.0.0")));
545
554- (void)takeSnapshotInRect:(CGRect)rect withCompletionBlock:(void (^)(UIImage *resultImage, NSInteger state))block;
555
566- (void)takeSnapshotInRect:(CGRect)rect timeoutInterval:(NSTimeInterval)timeout completionBlock:(void (^)(UIImage *resultImage, NSInteger state))block;
567
576- (double)metersPerPointForZoomLevel:(CGFloat)zoomLevel;
577
588- (CGPoint)convertCoordinate:(CLLocationCoordinate2D)coordinate toPointToView:(UIView *)view;
589
600- (CLLocationCoordinate2D)convertPoint:(CGPoint)point toCoordinateFromView:(UIView *)view;
601
612- (CGRect)convertRegion:(MACoordinateRegion)region toRectToView:(UIView *)view;
613
624- (MACoordinateRegion)convertRect:(CGRect)rect toRegionFromView:(UIView *)view;
625
635- (void)reloadMap;
636
641- (void)clearDisk;
642
648
655- (NSString *)mapContentApprovalNumber;
656
663- (NSString *)satelliteImageApprovalNumber;
664
671- (NSString *)terrainApprovalNumber;
672
685- (void)addAnimationWith:(CAKeyframeAnimation *)mapCenterAnimation
686 zoomAnimation:(CAKeyframeAnimation *)zoomAnimation
687 rotateAnimation:(CAKeyframeAnimation *)rotateAnimation
688 cameraDegreeAnimation:(CAKeyframeAnimation *)cameraDegreeAnimation;
689
694- (void)forceRefresh;
695
702- (void)setConstructingRoadEnable:(BOOL)enabled;
703
704- (void)setMapOptRecordState:(BOOL)state;
705
706#pragma mark - ALC Log
715+ (void)setAlcLogConfig:(MAALCLogLevel)loglevelMask recordStorage:(BOOL)recordStorage;
716
717#pragma mark - Privacy 隐私合规 Privacy compliance
726+ (void)updatePrivacyShow:(AMapPrivacyShowStatus)showStatus privacyInfo:(AMapPrivacyInfoStatus)containStatus;
733+ (void)updatePrivacyAgree:(AMapPrivacyAgreeStatus)agreeStatus;
734
735@end
736
737@interface MAMapView (Annotation)
738
741@property (nonatomic, readonly) NSArray *annotations;
742
745@property (nonatomic, copy) NSArray *selectedAnnotations;
746
749@property (nonatomic, readonly) CGRect annotationVisibleRect;
750
757- (void)addAnnotation:(id <MAAnnotation>)annotation;
758
765- (void)addAnnotations:(NSArray *)annotations;
766
773- (void)removeAnnotation:(id <MAAnnotation>)annotation;
774
781- (void)removeAnnotations:(NSArray *)annotations;
782
791- (NSSet *)annotationsInMapRect:(MAMapRect)mapRect;
792
801- (MAAnnotationView *)viewForAnnotation:(id <MAAnnotation>)annotation;
802
811- (MAAnnotationView *)dequeueReusableAnnotationViewWithIdentifier:(NSString *)identifier;
812
821- (void)selectAnnotation:(id <MAAnnotation>)annotation animated:(BOOL)animated;
822
831- (void)deselectAnnotation:(id <MAAnnotation>)annotation animated:(BOOL)animated;
832
841- (void)showAnnotations:(NSArray *)annotations animated:(BOOL)animated;
842
853- (void)showAnnotations:(NSArray *)annotations edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated;
854
855@end
856
857
858@interface MAMapView (UserLocation)
859
862@property (nonatomic) BOOL showsUserLocation;
863
866@property (nonatomic, readonly) MAUserLocation *userLocation;
867
870@property (nonatomic) BOOL customizeUserLocationAccuracyCircleRepresentation;
871
874@property (nonatomic, readonly) MACircle *userLocationAccuracyCircle;
875
878@property (nonatomic) MAUserTrackingMode userTrackingMode;
879
882@property (nonatomic, readonly, getter=isUserLocationVisible) BOOL userLocationVisible;
883
886@property (nonatomic) CLLocationDistance distanceFilter;
887
890@property (nonatomic) CLLocationAccuracy desiredAccuracy;
891
894@property (nonatomic) CLLocationDegrees headingFilter;
895
898@property (nonatomic) BOOL pausesLocationUpdatesAutomatically;
899
902@property (nonatomic) BOOL allowsBackgroundLocationUpdates;
903
912- (void)setUserTrackingMode:(MAUserTrackingMode)mode animated:(BOOL)animated;
913
920- (void)updateUserLocationRepresentation:(MAUserLocationRepresentation *)representation;
921
922@end
923
924@interface MAMapView (Overlay)
925
928@property (nonatomic, readonly) NSArray *overlays;
929
936- (NSArray *)overlaysInLevel:(MAOverlayLevel)level;
937
948- (void)addOverlay:(id <MAOverlay>)overlay;
949
958- (void)addOverlays:(NSArray *)overlays;
959
968- (void)addOverlay:(id <MAOverlay>)overlay level:(MAOverlayLevel)level;
969
978- (void)addOverlays:(NSArray *)overlays level:(MAOverlayLevel)level;
979
986- (void)removeOverlay:(id <MAOverlay>)overlay;
987
994- (void)removeOverlays:(NSArray *)overlays;
995
1010- (void)insertOverlay:(id <MAOverlay>)overlay atIndex:(NSUInteger)index level:(MAOverlayLevel)level;
1011
1020- (void)insertOverlay:(id <MAOverlay>)overlay aboveOverlay:(id <MAOverlay>)sibling;
1021
1030- (void)insertOverlay:(id <MAOverlay>)overlay belowOverlay:(id <MAOverlay>)sibling;
1031
1040- (void)insertOverlay:(id <MAOverlay>)overlay atIndex:(NSUInteger)index;
1041
1050- (void)exchangeOverlayAtIndex:(NSUInteger)index1 withOverlayAtIndex:(NSUInteger)index2;
1051
1062- (void)exchangeOverlayAtIndex:(NSUInteger)index1 withOverlayAtIndex:(NSUInteger)index2 atLevel:(MAOverlayLevel)level;
1063
1070- (void)exchangeOverlay:(id <MAOverlay>)overlay1 withOverlay:(id <MAOverlay>)overlay2;
1071
1080- (MAOverlayRenderer *)rendererForOverlay:(id <MAOverlay>)overlay;
1081
1090- (void)showOverlays:(NSArray *)overlays animated:(BOOL)animated;
1091
1102- (void)showOverlays:(NSArray *)overlays edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated;
1103
1114- (NSArray*)getHittedPolylinesWith:(CLLocationCoordinate2D)tappedCoord traverseAll:(BOOL)traverseAll;
1115
1122- (void)setCurrentLocation:(CLLocationCoordinate2D)location;
1123@end
1124
1125#if MA_INCLUDE_INDOOR
1126@interface MAMapView (Indoor)
1127
1130@property (nonatomic, getter = isShowsIndoorMap) BOOL showsIndoorMap;
1131
1134@property (nonatomic, getter = isShowsIndoorMapControl) BOOL showsIndoorMapControl;
1135
1138@property (nonatomic, readonly) CGSize indoorMapControlSize;
1139
1146- (void)setIndoorMapControlOrigin:(CGPoint)origin;
1147
1154- (void)setCurrentIndoorMapFloorIndex:(NSInteger)floorIndex;
1155
1160- (void)clearIndoorMapCache;
1161
1162@end
1163#endif
1164
1167@interface MAMapView (CustomMapStyle)
1168
1171@property (nonatomic, assign) BOOL customMapStyleEnabled;
1172
1179- (void)setCustomMapStyleOptions:(MAMapCustomStyleOptions *)styleOptions;
1180
1181@end
1182
1185@interface MAMapView (Buildings)
1186
1197- (NSInteger)hideBuildingsWithPolygon:(CLLocationCoordinate2D *)polygon polygonSize:(NSUInteger)polygonSize;
1198
1205- (void)showHiddenBuildingsWithOperationId:(NSInteger)operationId;
1206@end
1207
1208@interface MAMapView (EngineOverlay)
1209
1216- (void)addEngineOverlay:(MABaseEngineOverlay *)overlay;
1217@end
1218
1219@interface MAMapView (PoiFilter)
1225- (void)addPoiFilter:(MAPoiFilter *)poiFilter;
1232- (void)removePoiFilter:(NSString *)keyName;
1237- (void)clearPoiFilter;
1238@end
1239
1240#pragma mark - MAMapViewDelegate
1241@protocol MAMapViewDelegate <NSObject>
1242
1243@optional
1244
1251- (void)mapViewRegionChanged:(MAMapView *)mapView;
1252
1261- (void)mapView:(MAMapView *)mapView regionWillChangeAnimated:(BOOL)animated;
1262
1271- (void)mapView:(MAMapView *)mapView regionDidChangeAnimated:(BOOL)animated;
1272
1283- (void)mapView:(MAMapView *)mapView regionWillChangeAnimated:(BOOL)animated wasUserAction:(BOOL)wasUserAction;
1284
1295- (void)mapView:(MAMapView *)mapView regionDidChangeAnimated:(BOOL)animated wasUserAction:(BOOL)wasUserAction;
1296
1305- (void)mapView:(MAMapView *)mapView mapWillMoveByUser:(BOOL)wasUserAction;
1306
1315- (void)mapView:(MAMapView *)mapView mapDidMoveByUser:(BOOL)wasUserAction;
1316
1325- (void)mapView:(MAMapView *)mapView mapWillZoomByUser:(BOOL)wasUserAction;
1326
1335- (void)mapView:(MAMapView *)mapView mapDidZoomByUser:(BOOL)wasUserAction;
1336
1343- (void)mapViewWillStartLoadingMap:(MAMapView *)mapView;
1344
1351- (void)mapViewDidFinishLoadingMap:(MAMapView *)mapView;
1352
1361- (void)mapViewDidFailLoadingMap:(MAMapView *)mapView withError:(NSError *)error;
1362
1371- (void)mapView:(MAMapView *)mapView didFailLoadTerrainWithError:(NSError *)error;
1372
1398- (MAAnnotationView *)mapView:(MAMapView *)mapView viewForAnnotation:(id <MAAnnotation>)annotation;
1399
1408- (void)mapView:(MAMapView *)mapView didAddAnnotationViews:(NSArray *)views;
1409
1418- (void)mapView:(MAMapView *)mapView didSelectAnnotationView:(MAAnnotationView *)view;
1419
1428- (void)mapView:(MAMapView *)mapView didDeselectAnnotationView:(MAAnnotationView *)view;
1429
1436- (void)mapViewWillStartLocatingUser:(MAMapView *)mapView;
1437
1444- (void)mapViewDidStopLocatingUser:(MAMapView *)mapView;
1445
1456- (void)mapView:(MAMapView *)mapView didUpdateUserLocation:(MAUserLocation *)userLocation updatingLocation:(BOOL)updatingLocation;
1457
1465- (void)mapViewRequireLocationAuth:(CLLocationManager *)locationManager;
1466
1475- (void)mapView:(MAMapView *)mapView didFailToLocateUserWithError:(NSError *)error;
1476
1488- (void)mapView:(MAMapView *)mapView annotationView:(MAAnnotationView *)view didChangeDragState:(MAAnnotationViewDragState)newState
1489 fromOldState:(MAAnnotationViewDragState)oldState;
1490
1501- (MAOverlayRenderer *)mapView:(MAMapView *)mapView rendererForOverlay:(id <MAOverlay>)overlay;
1502
1511- (void)mapView:(MAMapView *)mapView didAddOverlayRenderers:(NSArray *)overlayRenderers;
1512
1523- (void)mapView:(MAMapView *)mapView annotationView:(MAAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control;
1524
1533- (void)mapView:(MAMapView *)mapView didAnnotationViewCalloutTapped:(MAAnnotationView *)view;
1534
1542- (void)mapView:(MAMapView *)mapView didAnnotationViewTapped:(MAAnnotationView *)view;
1543
1554- (void)mapView:(MAMapView *)mapView didChangeUserTrackingMode:(MAUserTrackingMode)mode animated:(BOOL)animated;
1555
1564- (void)mapView:(MAMapView *)mapView didChangeOpenGLESDisabled:(BOOL)openGLESDisabled __attribute((deprecated("Deprecated, since 7.9.0")));
1565
1574- (void)mapView:(MAMapView *)mapView didTouchPois:(NSArray *)pois;
1575
1584- (void)mapView:(MAMapView *)mapView didSingleTappedAtCoordinate:(CLLocationCoordinate2D)coordinate;
1585
1594- (void)mapView:(MAMapView *)mapView didLongPressedAtCoordinate:(CLLocationCoordinate2D)coordinate;
1595
1602- (void)mapInitComplete:(MAMapView *)mapView;
1603
1604#if MA_INCLUDE_INDOOR
1614- (void)mapView:(MAMapView *)mapView didIndoorMapShowed:(MAIndoorInfo *)indoorInfo;
1615
1625- (void)mapView:(MAMapView *)mapView didIndoorMapFloorIndexChanged:(MAIndoorInfo *)indoorInfo;
1626
1635- (void)mapView:(MAMapView *)mapView didIndoorMapHidden:(MAIndoorInfo *)indoorInfo;
1636#endif //end of MA_INCLUDE_INDOOR
1637
1644- (void)offlineDataWillReload:(MAMapView *)mapView;
1645
1652- (void)offlineDataDidReload:(MAMapView *)mapView;
1653
1659- (void)customMapStyleAuthFailedWithErrorCode:(int)errorCode message:(NSString *)msg;
1660
1661@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 MAAnnotationView.h:29
Definition MABaseEngineOverlay.h:14
Definition MACircle.h:15
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:278
CGPoint screenAnchor
Definition MAMapView.h:310
NSUInteger maxRenderFrame
Definition MAMapView.h:290
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:268
MAMapType mapType
Definition MAMapView.h:142
BOOL showsCompass
Definition MAMapView.h:230
MAMapRect visibleMapRect
Definition MAMapView.h:154
BOOL rotateEnabled
Definition MAMapView.h:198
MATileLoadCallback tileLoadCallback
Definition MAMapView.h:321
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:234
MAMapStatus * getMapStatus()
获取地图状态 Get map status
BOOL showTraffic
Definition MAMapView.h:218
BOOL drawingDisabled
是否强制关闭render,默认NO.地图元素完全不创建
Definition MAMapView.h:306
double metersPerPointForCurrentZoom
Definition MAMapView.h:282
CGPoint scaleOrigin
Definition MAMapView.h:251
CGSize logoSize
Definition MAMapView.h:263
NSRunLoopMode runLoopMode
Definition MAMapView.h:325
CGSize compassSize
Definition MAMapView.h:238
MACoordinateRegion limitRegion
Definition MAMapView.h:158
BOOL zoomEnabled
Definition MAMapView.h:190
MAMapRect limitMapRect
Definition MAMapView.h:162
BOOL showsScale
Definition MAMapView.h:247
CGFloat maxZoomLevel
Definition MAMapView.h:174
MAScaleControlsUnit scaleControlsUnit
Definition MAMapView.h:243
BOOL isAbroad
Definition MAMapView.h:286
void forceRefresh()
强制刷新。(since 6.0.0) Force refresh
BOOL showsBuildings
Definition MAMapView.h:206
void reloadMap()
重新加载地图 Reload the map
BOOL showsLocalLanguage
Definition MAMapView.h:214
BOOL terrainAuth
Definition MAMapView.h:134
CGFloat cameraDegree
Definition MAMapView.h:182
CGFloat minZoomLevel
Definition MAMapView.h:170
CGPoint logoCenter
Definition MAMapView.h:259
MACoordinateRegion region
Definition MAMapView.h:150
BOOL isAllowDecreaseFrame
Definition MAMapView.h:294
CGFloat zoomLevel
Definition MAMapView.h:166
BOOL rotateCameraEnabled
Definition MAMapView.h:202
BOOL loadWorldVectorMap
Definition MAMapView.h:340
BOOL touchPOIEnabled
Definition MAMapView.h:226
CGSize scaleSize
Definition MAMapView.h:255
BOOL logoEnable
Definition MAMapView.h:272
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:319
NSDictionary< NSNumber *, UIColor * > *trafficStatus __attribute((deprecated("Deprecated since 7.8.0")))
BOOL renderringDisabled
Definition MAMapView.h:302
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 MAGeometry.h:35
Definition MAGeometry.h:56
© 2017 高德信息技术有限公司 版权所有,保留所有权利。