iOS高德地图SDK(3D) V10.0.600
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
25typedef NS_ENUM(NSInteger, MAMapType)
26{
33};
34
36typedef NS_ENUM(NSInteger, MAUserTrackingMode)
37{
41};
42
44typedef NS_ENUM(NSInteger, MATrafficStatus)
45{
51};
52
54typedef NS_ENUM(NSInteger, MAOverlayLevel) {
57};
58
59#pragma mark - 动画相关的key
61extern NSString * const kMAMapLayerCenterMapPointKey;
62
64extern NSString * const kMAMapLayerZoomLevelKey;
65
67extern NSString * const kMAMapLayerRotationDegreeKey;
68
70extern NSString * const kMAMapLayerCameraDegreeKey;
71
72
73@protocol MAMapViewDelegate;
74
75@interface MAMapView : UIView
76
78@property (nonatomic, assign, class) BOOL metalEnabled;
79
81@property (nonatomic, assign, class) BOOL terrainEnabled;
82
84@property (nonatomic, assign, readonly) BOOL terrainAuth;
85
87@property (nonatomic, weak) id<MAMapViewDelegate> delegate;
88
90@property (nonatomic) MAMapType mapType;
91
93@property (nonatomic) CLLocationCoordinate2D centerCoordinate;
94
96@property (nonatomic) MACoordinateRegion region;
97
99@property (nonatomic) MAMapRect visibleMapRect;
100
102@property (nonatomic, assign) MACoordinateRegion limitRegion;
103
105@property (nonatomic, assign) MAMapRect limitMapRect;
106
108@property (nonatomic) CGFloat zoomLevel;
109
111@property (nonatomic) CGFloat minZoomLevel;
112
114@property (nonatomic) CGFloat maxZoomLevel;
115
117@property (nonatomic) CGFloat rotationDegree;
118
120@property (nonatomic) CGFloat cameraDegree;
121
123@property (nonatomic, assign) BOOL zoomingInPivotsAroundAnchorPoint;
124
126@property (nonatomic, getter = isZoomEnabled) BOOL zoomEnabled;
127
129@property (nonatomic, getter = isScrollEnabled) BOOL scrollEnabled;
130
132@property (nonatomic, getter = isRotateEnabled) BOOL rotateEnabled;
133
135@property (nonatomic, getter = isRotateCameraEnabled) BOOL rotateCameraEnabled;
136
138@property (nonatomic, getter = isShowsBuildings) BOOL showsBuildings;
139
141@property (nonatomic, assign, getter = isShowsLabels) BOOL showsLabels;
142
144@property (nonatomic, getter = isShowTraffic) BOOL showTraffic;
145
147@property (nonatomic, copy) NSDictionary <NSNumber *, UIColor *> *trafficStatus __attribute((deprecated("已废弃 since 7.8.0")));
148
150@property (nonatomic, assign) BOOL touchPOIEnabled;
151
153@property (nonatomic, assign) BOOL showsCompass;
154
156@property (nonatomic, assign) CGPoint compassOrigin;
157
159@property (nonatomic, readonly) CGSize compassSize;
160
162@property (nonatomic, assign) BOOL showsScale;
163
165@property (nonatomic, assign) CGPoint scaleOrigin;
166
168@property (nonatomic, readonly) CGSize scaleSize;
169
171@property (nonatomic, assign) CGPoint logoCenter;
172
174@property (nonatomic, readonly) CGSize logoSize;
175
177@property (nonatomic, readonly) double metersPerPointForCurrentZoom;
178
180@property (nonatomic, readonly) BOOL isAbroad;
181
183@property (nonatomic, assign) NSUInteger maxRenderFrame;
184
186@property (nonatomic, assign) BOOL isAllowDecreaseFrame;
187
189@property (nonatomic, assign) BOOL openGLESDisabled __attribute((deprecated("已废弃,since 7.9.0,请使用renderringDisabled属性")));
190
192@property (nonatomic, assign) BOOL renderringDisabled;
193
195@property (nonatomic, assign) CGPoint screenAnchor;
196
198@property (nonatomic, copy) NSRunLoopMode runLoopMode;
199
201@property (nonatomic, strong) NSNumber *mapLanguage;
202
208- (void)setRegion:(MACoordinateRegion)region animated:(BOOL)animated;
209
215- (MACoordinateRegion)regionThatFits:(MACoordinateRegion)region;
216
222- (void)setVisibleMapRect:(MAMapRect)mapRect animated:(BOOL)animated;
223
229- (MAMapRect)mapRectThatFits:(MAMapRect)mapRect;
230
237- (MAMapRect)mapRectThatFits:(MAMapRect)mapRect edgePadding:(UIEdgeInsets)insets;
238
245- (void)setVisibleMapRect:(MAMapRect)mapRect edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated;
246
254- (void)setVisibleMapRect:(MAMapRect)mapRect edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated duration:(CFTimeInterval)duration;
255
261- (void)setCenterCoordinate:(CLLocationCoordinate2D)coordinate animated:(BOOL)animated;
262
268- (void)setZoomLevel:(CGFloat)zoomLevel animated:(BOOL)animated;
269
276- (void)setZoomLevel:(CGFloat)zoomLevel atPivot:(CGPoint)pivot animated:(BOOL)animated;
277
284- (void)setRotationDegree:(CGFloat)rotationDegree animated:(BOOL)animated duration:(CFTimeInterval)duration;
285
292- (void)setCameraDegree:(CGFloat)cameraDegree animated:(BOOL)animated duration:(CFTimeInterval)duration;
293
299
300
306- (void)setMapStatus:(MAMapStatus *)status animated:(BOOL)animated;
307
314- (void)setMapStatus:(MAMapStatus *)status
315 animated:(BOOL)animated
316 duration:(CFTimeInterval)duration;
317
322- (void)setCompassImage:(UIImage *)image;
323
329- (UIImage *)takeSnapshotInRect:(CGRect)rect __attribute((deprecated("已废弃,请使用takeSnapshotInRect:withCompletionBlock:方法 since 6.0.0")));
330
336- (void)takeSnapshotInRect:(CGRect)rect withCompletionBlock:(void (^)(UIImage *resultImage, NSInteger state))block;
337
344- (void)takeSnapshotInRect:(CGRect)rect timeoutInterval:(NSTimeInterval)timeout completionBlock:(void (^)(UIImage *resultImage, NSInteger state))block;
345
351- (double)metersPerPointForZoomLevel:(CGFloat)zoomLevel;
352
359- (CGPoint)convertCoordinate:(CLLocationCoordinate2D)coordinate toPointToView:(UIView *)view;
360
367- (CLLocationCoordinate2D)convertPoint:(CGPoint)point toCoordinateFromView:(UIView *)view;
368
375- (CGRect)convertRegion:(MACoordinateRegion)region toRectToView:(UIView *)view;
376
383- (MACoordinateRegion)convertRect:(CGRect)rect toRegionFromView:(UIView *)view;
384
391- (void)reloadMap;
392
396- (void)clearDisk;
397
402
407- (NSString *)mapContentApprovalNumber;
408
413- (NSString *)satelliteImageApprovalNumber;
414
419- (NSString *)terrainApprovalNumber;
420
428- (void)addAnimationWith:(CAKeyframeAnimation *)mapCenterAnimation
429 zoomAnimation:(CAKeyframeAnimation *)zoomAnimation
430 rotateAnimation:(CAKeyframeAnimation *)rotateAnimation
431 cameraDegreeAnimation:(CAKeyframeAnimation *)cameraDegreeAnimation;
432
436- (void)forceRefresh;
437
442- (void)setConstructingRoadEnable:(BOOL)enabled;
443
444#pragma mark - Privacy 隐私合规
450+ (void)updatePrivacyShow:(AMapPrivacyShowStatus)showStatus privacyInfo:(AMapPrivacyInfoStatus)containStatus;
455+ (void)updatePrivacyAgree:(AMapPrivacyAgreeStatus)agreeStatus;
456
457@end
458
459@interface MAMapView (Annotation)
460
462@property (nonatomic, readonly) NSArray *annotations;
463
465@property (nonatomic, copy) NSArray *selectedAnnotations;
466
468@property (nonatomic, readonly) CGRect annotationVisibleRect;
469
474- (void)addAnnotation:(id <MAAnnotation>)annotation;
475
480- (void)addAnnotations:(NSArray *)annotations;
481
486- (void)removeAnnotation:(id <MAAnnotation>)annotation;
487
492- (void)removeAnnotations:(NSArray *)annotations;
493
499- (NSSet *)annotationsInMapRect:(MAMapRect)mapRect;
500
506- (MAAnnotationView *)viewForAnnotation:(id <MAAnnotation>)annotation;
507
513- (MAAnnotationView *)dequeueReusableAnnotationViewWithIdentifier:(NSString *)identifier;
514
520- (void)selectAnnotation:(id <MAAnnotation>)annotation animated:(BOOL)animated;
521
527- (void)deselectAnnotation:(id <MAAnnotation>)annotation animated:(BOOL)animated;
528
534- (void)showAnnotations:(NSArray *)annotations animated:(BOOL)animated;
535
542- (void)showAnnotations:(NSArray *)annotations edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated;
543
544@end
545
546
547@interface MAMapView (UserLocation)
548
550@property (nonatomic) BOOL showsUserLocation;
551
553@property (nonatomic, readonly) MAUserLocation *userLocation;
554
556@property (nonatomic) BOOL customizeUserLocationAccuracyCircleRepresentation;
557
559@property (nonatomic, readonly) MACircle *userLocationAccuracyCircle;
560
562@property (nonatomic) MAUserTrackingMode userTrackingMode;
563
565@property (nonatomic, readonly, getter=isUserLocationVisible) BOOL userLocationVisible;
566
568@property (nonatomic) CLLocationDistance distanceFilter;
569
571@property (nonatomic) CLLocationAccuracy desiredAccuracy;
572
574@property (nonatomic) CLLocationDegrees headingFilter;
575
577@property (nonatomic) BOOL pausesLocationUpdatesAutomatically;
578
580@property (nonatomic) BOOL allowsBackgroundLocationUpdates;
581
587- (void)setUserTrackingMode:(MAUserTrackingMode)mode animated:(BOOL)animated;
588
593- (void)updateUserLocationRepresentation:(MAUserLocationRepresentation *)representation;
594
595@end
596
597@interface MAMapView (Overlay)
598
600@property (nonatomic, readonly) NSArray *overlays;
601
606- (NSArray *)overlaysInLevel:(MAOverlayLevel)level;
607
614- (void)addOverlay:(id <MAOverlay>)overlay;
615
621- (void)addOverlays:(NSArray *)overlays;
622
628- (void)addOverlay:(id <MAOverlay>)overlay level:(MAOverlayLevel)level;
629
635- (void)addOverlays:(NSArray *)overlays level:(MAOverlayLevel)level;
636
641- (void)removeOverlay:(id <MAOverlay>)overlay;
642
647- (void)removeOverlays:(NSArray *)overlays;
648
658- (void)insertOverlay:(id <MAOverlay>)overlay atIndex:(NSUInteger)index level:(MAOverlayLevel)level;
659
665- (void)insertOverlay:(id <MAOverlay>)overlay aboveOverlay:(id <MAOverlay>)sibling;
666
672- (void)insertOverlay:(id <MAOverlay>)overlay belowOverlay:(id <MAOverlay>)sibling;
673
679- (void)insertOverlay:(id <MAOverlay>)overlay atIndex:(NSUInteger)index;
680
686- (void)exchangeOverlayAtIndex:(NSUInteger)index1 withOverlayAtIndex:(NSUInteger)index2;
687
694- (void)exchangeOverlayAtIndex:(NSUInteger)index1 withOverlayAtIndex:(NSUInteger)index2 atLevel:(MAOverlayLevel)level;
695
701- (void)exchangeOverlay:(id <MAOverlay>)overlay1 withOverlay:(id <MAOverlay>)overlay2;
702
708- (MAOverlayRenderer *)rendererForOverlay:(id <MAOverlay>)overlay;
709
715- (void)showOverlays:(NSArray *)overlays animated:(BOOL)animated;
716
723- (void)showOverlays:(NSArray *)overlays edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated;
724
731- (NSArray*)getHittedPolylinesWith:(CLLocationCoordinate2D)tappedCoord traverseAll:(BOOL)traverseAll;
732
733@end
734
735#if MA_INCLUDE_INDOOR
736@interface MAMapView (Indoor)
737
739@property (nonatomic, getter = isShowsIndoorMap) BOOL showsIndoorMap;
740
742@property (nonatomic, getter = isShowsIndoorMapControl) BOOL showsIndoorMapControl;
743
745@property (nonatomic, readonly) CGSize indoorMapControlSize;
746
751- (void)setIndoorMapControlOrigin:(CGPoint)origin;
752
757- (void)setCurrentIndoorMapFloorIndex:(NSInteger)floorIndex;
758
762- (void)clearIndoorMapCache;
763
764@end
765#endif
766
768@interface MAMapView (CustomMapStyle)
769
771@property (nonatomic, assign) BOOL customMapStyleEnabled;
772
777- (void)setCustomMapStyleOptions:(MAMapCustomStyleOptions *)styleOptions;
778
779@end
780
782@interface MAMapView (Buildings)
783
790- (NSInteger)hideBuildingsWithPolygon:(CLLocationCoordinate2D *)polygon polygonSize:(NSUInteger)polygonSize;
791
796- (void)showHiddenBuildingsWithOperationId:(NSInteger)operationId;
797@end
798
799@interface MAMapView (EngineOverlay)
800
805- (void)addEngineOverlay:(MABaseEngineOverlay *)overlay;
806@end
807
808#pragma mark - MAMapViewDelegate
809@protocol MAMapViewDelegate <NSObject>
810
811@optional
812
817- (void)mapViewRegionChanged:(MAMapView *)mapView;
818
824- (void)mapView:(MAMapView *)mapView regionWillChangeAnimated:(BOOL)animated;
825
831- (void)mapView:(MAMapView *)mapView regionDidChangeAnimated:(BOOL)animated;
832
839- (void)mapView:(MAMapView *)mapView regionWillChangeAnimated:(BOOL)animated wasUserAction:(BOOL)wasUserAction;
840
847- (void)mapView:(MAMapView *)mapView regionDidChangeAnimated:(BOOL)animated wasUserAction:(BOOL)wasUserAction;
848
854- (void)mapView:(MAMapView *)mapView mapWillMoveByUser:(BOOL)wasUserAction;
855
861- (void)mapView:(MAMapView *)mapView mapDidMoveByUser:(BOOL)wasUserAction;
862
868- (void)mapView:(MAMapView *)mapView mapWillZoomByUser:(BOOL)wasUserAction;
869
875- (void)mapView:(MAMapView *)mapView mapDidZoomByUser:(BOOL)wasUserAction;
876
881- (void)mapViewWillStartLoadingMap:(MAMapView *)mapView;
882
887- (void)mapViewDidFinishLoadingMap:(MAMapView *)mapView;
888
894- (void)mapViewDidFailLoadingMap:(MAMapView *)mapView withError:(NSError *)error;
895
901- (void)mapView:(MAMapView *)mapView didFailLoadTerrainWithError:(NSError *)error;
902
918- (MAAnnotationView *)mapView:(MAMapView *)mapView viewForAnnotation:(id <MAAnnotation>)annotation;
919
925- (void)mapView:(MAMapView *)mapView didAddAnnotationViews:(NSArray *)views;
926
932- (void)mapView:(MAMapView *)mapView didSelectAnnotationView:(MAAnnotationView *)view;
933
939- (void)mapView:(MAMapView *)mapView didDeselectAnnotationView:(MAAnnotationView *)view;
940
945- (void)mapViewWillStartLocatingUser:(MAMapView *)mapView;
946
951- (void)mapViewDidStopLocatingUser:(MAMapView *)mapView;
952
959- (void)mapView:(MAMapView *)mapView didUpdateUserLocation:(MAUserLocation *)userLocation updatingLocation:(BOOL)updatingLocation;
960
966- (void)mapViewRequireLocationAuth:(CLLocationManager *)locationManager;
967
973- (void)mapView:(MAMapView *)mapView didFailToLocateUserWithError:(NSError *)error;
974
982- (void)mapView:(MAMapView *)mapView annotationView:(MAAnnotationView *)view didChangeDragState:(MAAnnotationViewDragState)newState
983 fromOldState:(MAAnnotationViewDragState)oldState;
984
991- (MAOverlayRenderer *)mapView:(MAMapView *)mapView rendererForOverlay:(id <MAOverlay>)overlay;
992
998- (void)mapView:(MAMapView *)mapView didAddOverlayRenderers:(NSArray *)overlayRenderers;
999
1006- (void)mapView:(MAMapView *)mapView annotationView:(MAAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control;
1007
1013- (void)mapView:(MAMapView *)mapView didAnnotationViewCalloutTapped:(MAAnnotationView *)view;
1014
1020- (void)mapView:(MAMapView *)mapView didAnnotationViewTapped:(MAAnnotationView *)view;
1021
1028- (void)mapView:(MAMapView *)mapView didChangeUserTrackingMode:(MAUserTrackingMode)mode animated:(BOOL)animated;
1029
1035- (void)mapView:(MAMapView *)mapView didChangeOpenGLESDisabled:(BOOL)openGLESDisabled __attribute((deprecated("已废弃,since 7.9.0")));
1036
1042- (void)mapView:(MAMapView *)mapView didTouchPois:(NSArray *)pois;
1043
1049- (void)mapView:(MAMapView *)mapView didSingleTappedAtCoordinate:(CLLocationCoordinate2D)coordinate;
1050
1056- (void)mapView:(MAMapView *)mapView didLongPressedAtCoordinate:(CLLocationCoordinate2D)coordinate;
1057
1062- (void)mapInitComplete:(MAMapView *)mapView;
1063
1064#if MA_INCLUDE_INDOOR
1071- (void)mapView:(MAMapView *)mapView didIndoorMapShowed:(MAIndoorInfo *)indoorInfo;
1072
1079- (void)mapView:(MAMapView *)mapView didIndoorMapFloorIndexChanged:(MAIndoorInfo *)indoorInfo;
1080
1087- (void)mapView:(MAMapView *)mapView didIndoorMapHidden:(MAIndoorInfo *)indoorInfo;
1088#endif //end of MA_INCLUDE_INDOOR
1089
1094- (void)offlineDataWillReload:(MAMapView *)mapView;
1095
1100- (void)offlineDataDidReload:(MAMapView *)mapView;
1101
1102@end
1103
MAAnnotationViewDragState
Definition MAAnnotationView.h:15
NSString *const kMAMapLayerCenterMapPointKey
中心点(MAMapPoint)key, 封装成[NSValue valueWithMAMapPoint:]
NSString *const kMAMapLayerCameraDegreeKey
摄像机俯视角度, 范围[0, 45], 封装成NSNumber
MAMapType
Definition MAMapView.h:26
@ MAMapTypeSatellite
卫星地图
Definition MAMapView.h:28
@ MAMapTypeNaviNight
导航夜间视图
Definition MAMapView.h:32
@ MAMapTypeNavi
导航视图
Definition MAMapView.h:30
@ MAMapTypeStandardNight
夜间视图
Definition MAMapView.h:29
@ MAMapTypeStandard
普通地图
Definition MAMapView.h:27
@ MAMapTypeBus
公交视图
Definition MAMapView.h:31
NSString *const kMAMapLayerZoomLevelKey
缩放级别key, 范围[minZoomLevel, maxZoomLevel], 封装成NSNumber
MATrafficStatus
Definition MAMapView.h:45
@ MATrafficStatusSmooth
1 通畅
Definition MAMapView.h:46
@ MATrafficStatusSeriousJam
4 严重阻塞
Definition MAMapView.h:49
@ MATrafficStatusSlow
2 缓行
Definition MAMapView.h:47
@ MATrafficStatusJam
3 阻塞
Definition MAMapView.h:48
@ MATrafficStatusExtremelySmooth
5 极度通畅
Definition MAMapView.h:50
MAOverlayLevel
Definition MAMapView.h:54
@ MAOverlayLevelAboveRoads
在地图底图标注和兴趣点图标之下绘制overlay
Definition MAMapView.h:55
@ MAOverlayLevelAboveLabels
在地图底图标注和兴趣点图标之上绘制overlay
Definition MAMapView.h:56
NSString *const kMAMapLayerRotationDegreeKey
旋转角度key, 范围[0, 360), 封装成NSNumber
MAUserTrackingMode
Definition MAMapView.h:37
@ MAUserTrackingModeFollow
追踪用户的location更新
Definition MAMapView.h:39
@ MAUserTrackingModeNone
不追踪用户的location更新
Definition MAMapView.h:38
@ MAUserTrackingModeFollowWithHeading
追踪用户的location与heading更新
Definition MAMapView.h:40
标注view
Definition MAAnnotationView.h:27
Definition MABaseEngineOverlay.h:14
该类用于定义一个圆, 通常MACircle是MACircleView的model
Definition MACircle.h:14
Definition MAMapCustomStyleOptions.h:12
地图状态对象
Definition MAMapStatus.h:17
Definition MAMapView.h:76
CLLocationCoordinate2D centerCoordinate
当前地图的中心点,改变该值时,地图的比例尺级别不会发生变化
Definition MAMapView.h:93
id< MAMapViewDelegate > delegate
地图view的delegate
Definition MAMapView.h:87
BOOL showsLabels
是否显示底图标注, 默认为YES
Definition MAMapView.h:141
CGPoint screenAnchor
地图的视图锚点。坐标系归一化,(0, 0)为MAMapView左上角,(1, 1)为右下角。默认为(0.5, 0.5),即当前地图的视图中心 (since 5.0....
Definition MAMapView.h:195
NSUInteger maxRenderFrame
最大帧数,有效的帧数为:60、30、20、10等能被60整除的数。默认为60
Definition MAMapView.h:183
BOOL terrainEnabled
是否打开地形图,默认NO. 注意:需在地图创建前设置 (since 8.2.0)
Definition MAMapView.h:81
CGFloat rotationDegree
设置地图旋转角度(逆时针为正向)
Definition MAMapView.h:117
NSString * terrainApprovalNumber()
获取地形图审图号。(since 8.2.0)
MAMapType mapType
地图类型。注意:自定义样式优先级高于mapType,如开启了自定义样式,要关闭自定义样式后mapType才生效
Definition MAMapView.h:90
BOOL showsCompass
是否显示指南针, 默认YES
Definition MAMapView.h:153
MAMapRect visibleMapRect
可见区域, 设定的该范围可能会被调整为适合地图窗口显示的范围
Definition MAMapView.h:99
BOOL rotateEnabled
是否支持旋转, 默认YES
Definition MAMapView.h:132
NSString * mapContentApprovalNumber()
获取地图审图号。如果启用了“自定义样式”功能(customMapStyleEnabled 为 YES),则返回nil。(since 5.4.0)
void reloadInternalTexture()
重新加载内部纹理,在纹理被错误释放时可以执行此方法。(since 5.4.0)
CGPoint compassOrigin
指南针原点位置
Definition MAMapView.h:156
MAMapStatus * getMapStatus()
获取地图状态
BOOL showTraffic
是否显示交通路况图层, 默认为NO
Definition MAMapView.h:144
double metersPerPointForCurrentZoom
在当前缩放级别下, 基于地图中心点, 1 screen point 对应的距离(单位是米)
Definition MAMapView.h:177
BOOL openGLESDisabled __attribute((deprecated("已废弃,since 7.9.0,请使用renderringDisabled属性")))
停止/开启 OpenGLES绘制, 默认NO. 对应回调是 - (void)mapView:(MAMapView *) didChangeOpenGLESDisabled:(BOOL)
CGPoint scaleOrigin
比例尺原点位置
Definition MAMapView.h:165
CGSize logoSize
logo的宽高
Definition MAMapView.h:174
NSRunLoopMode runLoopMode
地图渲染的runloop mode,默认为NSRunLoopCommonModes。如果是和UIScrollView一起使用且不希望地图在scrollView拖动时渲染,请设置此值为NSDefaultR...
Definition MAMapView.h:198
CGSize compassSize
指南针的宽高
Definition MAMapView.h:159
MACoordinateRegion limitRegion
设置可见地图区域的矩形边界,如限制地图只显示北京市范围
Definition MAMapView.h:102
BOOL zoomEnabled
是否支持缩放, 默认YES
Definition MAMapView.h:126
MAMapRect limitMapRect
设置可见地图区域的矩形边界,如限制地图只显示北京市范围
Definition MAMapView.h:105
BOOL showsScale
是否显示比例尺, 默认YES
Definition MAMapView.h:162
NSDictionary< NSNumber *, UIColor * > *trafficStatus __attribute((deprecated("已废弃 since 7.8.0")))
设置实时交通颜色,key为 MATrafficStatus
NSNumber * mapLanguage
设置语言。中文:@0: 英文:@1. 英文使用注意事项:1、不能和自定义地图样式同时使用;2、英文状态只在MAMapTypeStandard生效
Definition MAMapView.h:201
CGFloat maxZoomLevel
最大缩放级别(有室内地图时最大为20,否则为19)
Definition MAMapView.h:114
BOOL isAbroad
标识当前地图中心位置是否在中国范围外。此属性不是精确判断,不能用于边界区域
Definition MAMapView.h:180
void forceRefresh()
强制刷新。(since 6.0.0)
BOOL showsBuildings
是否显示楼块,默认为YES
Definition MAMapView.h:138
void reloadMap()
重新加载地图
BOOL terrainAuth
是否有地形图授权,默认YES. 如果没有授权会回调MAMapViewDelegate的 - (void)mapView:(MAMapView *)mapView didFailLoadTerrainWi...
Definition MAMapView.h:84
CGFloat cameraDegree
设置地图相机角度(范围为[0.f, 60.f],但高于40度的角度需要在16级以上才能生效)
Definition MAMapView.h:120
CGFloat minZoomLevel
最小缩放级别
Definition MAMapView.h:111
CGPoint logoCenter
logo位置, 必须在mapView.bounds之内,否则会被忽略
Definition MAMapView.h:171
MACoordinateRegion region
当前地图的经纬度范围,设定的该范围可能会被调整为适合地图窗口显示的范围
Definition MAMapView.h:96
BOOL isAllowDecreaseFrame
是否允许降帧,默认为YES
Definition MAMapView.h:186
CGFloat zoomLevel
缩放级别(默认3-19,有室内地图时为3-20)
Definition MAMapView.h:108
BOOL rotateCameraEnabled
是否支持camera旋转, 默认YES
Definition MAMapView.h:135
BOOL touchPOIEnabled
是否支持单击地图获取POI信息(默认为YES), 对应的回调是 -(void)mapView:(MAMapView *) didTouchPois:(NSArray *)
Definition MAMapView.h:150
CGSize scaleSize
比例尺的最大宽高
Definition MAMapView.h:168
BOOL metalEnabled
标记是否开启metal,默认NO. 注意:因机型或系统限制(要求机型最低5S,系统最低iOS10),开启metal可能失败。
Definition MAMapView.h:78
void clearDisk()
清除所有磁盘上缓存的地图数据(不包括离线地图)
NSString * satelliteImageApprovalNumber()
获取卫星图片审图号。(since 5.4.0)
BOOL renderringDisabled
停止/开启 地图绘制, 默认NO.
Definition MAMapView.h:192
BOOL scrollEnabled
是否支持平移, 默认YES
Definition MAMapView.h:129
BOOL zoomingInPivotsAroundAnchorPoint
是否以screenAnchor点作为锚点进行缩放,默认为YES。如果为NO,则以手势中心点作为锚点
Definition MAMapView.h:123
该类是地图覆盖物Renderer的基类, 提供绘制overlay的接口但并无实际的实现(render相关方法只能在重写后的glRender方法中使用)
Definition MAOverlayRenderer.h:20
定位信息类
Definition MAUserLocation.h:18
用户位置显示样式控制
Definition MAUserLocationRepresentation.h:17
中心点、跨度范围定义的四边形经纬度范围
Definition MAGeometry.h:32
平面投影矩形结构定义
Definition MAGeometry.h:50
© 2017 高德信息技术有限公司 版权所有,保留所有权利。