TencentMapSDK_iOS_3D_v6.7.0

QMapView.h
1 //
2 // QMapView.h
3 // QMapKit
4 //
5 // Created by tabsong on 17/5/15.
6 // Copyright © 2017年 tencent. All rights reserved.
7 //
8
9 #import <UIKit/UIKit.h>
10 #import "QGeometry.h"
11 #import "QAnnotation.h"
12 #import "QAnnotationView.h"
13 #import "QOverlayView.h"
14 #import "QBasicMapViewLayer.h"
15 #import "QTypes.h"
16 #import "QUserLocationPresentation.h"
17 #import "QTileOverlay.h"
18 #import "QCustomLayer.h"
19 #import "QAOILayer.h"
20 #import "QText.h"
21 #import "QMarker.h"
22 #import "QMarkerViewDefines.h"
23 #import "QMaskingLayer.h"
24
25 typedef NS_ENUM(NSInteger, QUserTrackingMode)
26 {
27 QUserTrackingModeNone = 0,
28 QUserTrackingModeFollow = 1,
29 QUserTrackingModeFollowWithHeading = 2
30 };
31
32 typedef NS_ENUM(NSUInteger, QMapLogoAnchor)
33 {
34 QMapLogoAnchorRightBottom = 0,
35 QMapLogoAnchorLeftBottom,
36 QMapLogoAnchorLeftTop,
37 QMapLogoAnchorRightTop,
38 QMapLogoAnchorMax
39 };
40
41 @class QUserLocation, QPolygon;
42 @protocol QMapViewDelegate;
43
44
45 #pragma mark - QMapView
46
50 @interface QMapView : UIView
51
57 @property (nonatomic, assign, getter = isHandDrawMapEnabled) BOOL handDrawMapEnabled;
58
62 @property (nonatomic, assign) BOOL showsTraffic;
63
64 #pragma mark - Resources
65
71 + (void)loadPrefferedResourceFilesFromDirectory:(NSString *)path;
72
73 #pragma mark - Basic
74
78 @property (nonatomic, weak) id<QMapViewDelegate> delegate;
79
80 /*@
81 * @brief 地图类型
82 */
83 @property (nonatomic, assign) QMapType mapType;
84
85
93 - (void)setStyleType:(QMapStyleType)styleType DEPRECATED_ATTRIBUTE;
94
100 - (void)setMapStyle:(int)styleType;
101
105 @property (nonatomic) BOOL showsScale;
106
110 @property (nonatomic) BOOL showsBuildings;
111
115 @property (nonatomic) BOOL shows3DBuildings;
116
120 @property (nonatomic) BOOL showsPoi;
121
127 @property (nonatomic) QMapLabelSize labelSize;
128
132 @property (nonatomic) BOOL showsBaseMap;
133
137 @property (nonatomic) BOOL showsCompass;
138
142 @property (nonatomic) NSInteger preferredFramesPerSecond;
143
147 - (void)setCompassOffset:(CGPoint)offset;
148
157 - (void)setForeignLanguage:(QMapLanguage)language;
158
162 - (void)setWorldMapEnable:(BOOL)enable;
163
167 - (void)setMapViewRenderWhenDetachedFromWindowEnabled:(BOOL)enabled;
168
172 - (void)setMapViewRenderWhenAppInactiveEnabled:(BOOL)enabled;
173
177 - (void)setCenterOffsetY:(float)offset __attribute__ ((deprecated("use - (void)setCenterOffsetV2:(CGPoint)offset animated:(BOOL)animated instead")));
178
182 - (void)setCenterOffset:(CGPoint)offset __attribute__ ((deprecated("use - (void)setCenterOffsetV2:(CGPoint)offset animated:(BOOL)animated instead")));
183
190 - (void)setCenterOffset:(CGPoint)offset animated:(BOOL)animated __attribute__ ((deprecated("use - (void)setCenterOffsetV2:(CGPoint)offset animated:(BOOL)animated instead")));
191
195 @property(nonatomic) CGPoint centerOffsetV2;
196
203 - (void)setCenterOffsetV2:(CGPoint)offset animated:(BOOL)animated;
204
210 - (void)setLogoOffset:(CGPoint)offset DEPRECATED_ATTRIBUTE;
211
218 - (void)setLogoMargin:(CGPoint)margin anchor:(QMapLogoAnchor)anchor;
219
225 - (void)setLogoScale:(CGFloat)scale;
226
227
231 @property (nonatomic, assign) CGPoint logoCenter;
232
236 @property (nonatomic, readonly) CGSize logoSize;
237
243 - (void)setScaleViewOffset:(CGPoint)offset;
244
248 @property (nonatomic, assign) CGPoint scaleOrigin;
249
253 @property (nonatomic, readonly) CGSize scaleSize;
254
259 - (void) setScaleViewFadeEnable:(BOOL)enable;
260
266 - (void)setRoadEventVisible:(BOOL)visible DEPRECATED_ATTRIBUTE;
267
273 - (void)setBuildingBlackList:(QMapRect*)noBuildingList count:(int)count;
274
280 @property (nonatomic, readonly) QBasicMapViewLayer *animationLayer;
281
286 - (void)setGLMapDefaultGroundColor:(UIColor *)defaultColor;
287
288 #pragma mark - MapStatus
289
293 @property (nonatomic, assign) CLLocationCoordinate2D centerCoordinate;
294
301 - (void)setCenterCoordinate:(CLLocationCoordinate2D)coordinate animated:(BOOL)animated;
302
306 @property (nonatomic, assign) CGFloat zoomLevel;
307
311 @property (nonatomic, readonly) CGFloat minZoomLevel;
312
316 @property (nonatomic, readonly) CGFloat maxZoomLevel;
317
324 - (void)setMinZoomLevel:(CGFloat)minZoomLevel maxZoomLevel:(CGFloat)maxZoomLevel;
325
331 - (void)setZoomLevelMultiplierForZoomIn:(CGFloat)zoomInMultiplier zoomOut:(CGFloat)zoomOutMultiplier;
332
339 - (void)setZoomLevel:(CGFloat)zoomLevel animated:(BOOL)animated;
340
344 @property (nonatomic, assign) CGFloat rotation;
345
352 - (void)setRotation:(CGFloat)rotation animated:(BOOL)animated;
353
357 @property (nonatomic, assign) CGFloat overlooking;
358
363 - (void)enableAutoMaxOverlooking:(BOOL)enable;
364
371 - (void)setOverlooking:(CGFloat)overlooking animated:(BOOL)animated;
372
376 @property (nonatomic) QMapRect visibleMapRect;
377
385 - (void)setVisibleMapRect:(QMapRect)mapRect animated:(BOOL)animated;
386
395 - (void)setVisibleMapRect:(QMapRect)mapRect edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated;
396
400 @property (nonatomic) QCoordinateRegion region;
401
409 - (void)setRegion:(QCoordinateRegion)region animated:(BOOL)animated;
410
419 - (void)setRegion:(QCoordinateRegion)region edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated;
420
427 - (QMapRect)mapRectThatFits:(QMapRect)mapRect edgePadding:(UIEdgeInsets)insets;
428
438 - (QMapRect)mapRectThatFits: (QMapRect)mapRect
439 containsCalloutView:(BOOL)bContainsCalloutView
440 annotations:(NSArray<id<QAnnotation> >*)annotations
441 edgePadding:(UIEdgeInsets)insets;
442
450 - (CGFloat)zoomLevelThatFits:(QMapRect)mapRect edgePadding:(UIEdgeInsets)insets outCenterCoordinate:(CLLocationCoordinate2D *)outCoordinate;
451
458 -(void)setLimitMapRect:(QMapRect)mapRect mode:(QMapLimitRectFitMode)mode;
459
464 - (float *)glViewMatrix;
465
470 - (float *)glProjectionMatrix;
471
477 - (CGPoint)glVertexForCoordinate:(CLLocationCoordinate2D)coordinate;
478
483 - (CGFloat)glPointRatio;
484
488 @property (nonatomic, readonly) double metersPerPointAtCurrentZoomLevel;
489
496 - (double)metersPerPointAtLatitude:(CLLocationDegrees)latitude zoomLevel:(CGFloat)zoomLevel;
497
498 #pragma mark - Gesture Control
499
503 @property(nonatomic, getter=isZoomEnabled) BOOL zoomEnabled;
504
505 /*
506 * @brief 以地图中心为中心, 默认为NO（即以手势为中心）
507 */
508 @property (nonatomic, assign, getter = isKeepCenterDuringZoom) BOOL keepCenterDuringZoom;
509
513 @property(nonatomic, getter=isScrollEnabled) BOOL scrollEnabled;
514
518 @property (nonatomic, assign, getter=isOverlookingEnabled) BOOL overlookingEnabled;
519
523 @property (nonatomic, assign, getter=isRotateEnabled) BOOL rotateEnabled;
524
533 @property (nonatomic, assign) BOOL alwaysTriggerDidTapCoordinateEnabled;
534
535 #pragma mark - Coordinate Convert
536
544 - (CGPoint)convertCoordinate:(CLLocationCoordinate2D)coordinate toPointToView:(UIView *)view;
545
553 - (CLLocationCoordinate2D)convertPoint:(CGPoint)point toCoordinateFromView:(UIView *)view;
554
562 - (CGRect)convertRegion:(QCoordinateRegion)region toRectToView:(UIView *)view;
563
571 - (QCoordinateRegion)convertRect:(CGRect)rect toRegionFromView:(UIView *)view;
572
573 @end
574
578 @interface QMapView (UserLocation)
579
583 @property (nonatomic, readonly) QUserLocationPresentation *userLocatorPresentation;
584
590 - (void)configureUserLocationPresentation:(QUserLocationPresentation *)presentation;
591
595 @property (nonatomic, assign) BOOL showsUserLocation;
596
600 @property (nonatomic, assign) QOverlayLevel locatorDisplayLevel;
601
607 @property (nonatomic, assign) int locatorZIndex;
608
612 @property (nonatomic, readonly) QUserLocation *userLocation;
613
617 @property (nonatomic) CLLocationAccuracy desiredAccuracy;
618
622 @property (nonatomic) CLLocationDistance distanceFilter;
623
624
628 @property (nonatomic) CLLocationDegrees headingFilter;
629
633 @property(assign, nonatomic) BOOL allowsBackgroundLocationUpdates;
634
638 @property(assign, nonatomic) BOOL pausesLocationUpdatesAutomatically;
639
643 @property(nonatomic, readonly) CLAccuracyAuthorization accuracyAuthorization API_AVAILABLE(ios(14));
644
648 @property(nonatomic, readonly) CLAuthorizationStatus authorizationStatus API_AVAILABLE(ios(14));
649
653 @property (nonatomic) QUserTrackingMode userTrackingMode;
654
661 - (void)setUserTrackingMode:(QUserTrackingMode)mode animated:(BOOL)animated;
662
666 @property (nonatomic, readonly, getter=isUserLocationVisible) BOOL userLocationVisible;
667
671 - (void)setUserLocationHidden:(BOOL)hidden;
672
676 - (void)setUserLocationCompassHidden:(BOOL)hidden;
677
681 - (void)setUserLocationNavigationGravitylineHidden:(BOOL)hidden;
682
687 - (void)requestTempPrecisedLocation:(QMapView *)mapView purposeKey:(NSString *)key completion:(void(^)(NSError * error))completion API_AVAILABLE(ios(14));
688
689 @end
690
694 @interface QMapView (Annotation)
695
699 @property(nonatomic, readonly) NSArray *annotations;
700
706 @property (nonatomic, copy) NSArray<id<QAnnotation>> *selectedAnnotations;
707
713 - (NSSet<id <QAnnotation>> *)annotationsInMapRect:(QMapRect)mapRect;
714
720 - (void)addAnnotation:(id <QAnnotation>)annotation;
721
726 - (void)addAnnotations:(NSArray *)annotations;
727
732 - (void)removeAnnotation:(id <QAnnotation>)annotation;
733
738 - (void)removeAnnotations:(NSArray *)annotations;
739
745 - (QAnnotationView *)viewForAnnotation:(id <QAnnotation>)annotation;
746
752 - (QAnnotationView *)dequeueReusableAnnotationViewWithIdentifier:(NSString *)identifier;
753
760 - (void)bringAnnotationToFront:(id <QAnnotation>)annotation DEPRECATED_ATTRIBUTE;
761
767 - (void)selectAnnotation:(id <QAnnotation>)annotation animated:(BOOL)animated;
768
774 - (void)deselectAnnotation:(id <QAnnotation>)annotation animated:(BOOL)animated;
775
782 - (void)showAnnotations:(NSArray<id<QAnnotation>> *)annotations edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated;
783
784 @end
785
786
787 #pragma mark - Overlay
788
792 @interface QMapView (Overlay)
793
797 @property (nonatomic, readonly) NSArray *overlays;
798
803 - (void)addOverlay:(id <QOverlay>)overlay;
804
809 - (void)addOverlays:(NSArray<id <QOverlay>> *)overlays;
810
816 - (void)addMultiPolygons:(NSArray <QPolygon *> *)polygons;
817
822 - (void)removeOverlay:(id <QOverlay>)overlay;
823
828 - (void)removeOverlays:(NSArray<id <QOverlay>> *)overlays;
829
835 - (QOverlayView *)viewForOverlay:(id <QOverlay>)overlay;
836
843 - (void)showOverlays:(NSArray<id<QOverlay>> *)overlays edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated;
844
851 - (void)showQMarkers:(NSArray<QMarker *> *)markers edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated;
852
853 @end
854
855
856 #pragma mark - CustomLayer
857
861 @interface QMapView (CustomLayer)
862
867 - (void)addCustomLayer:(QCustomLayer *)layer;
868
873 - (void)removeCustomLayer:(QCustomLayer *)layer;
874
875 @end
876
877 #pragma mark - POILayer
878
879 @interface QMapView (AOILayer)
880
887 - (void)addAOILayer:(QAOILayer *)layer callback:(void(^)(BOOL success))callback;
888
893 - (void)removeAOILayer:(QAOILayer *)layer;
894
895 @end
896
897 #pragma mark - QMaskingLayer
898
899 @interface QMapView (QMaskingLayer)
900
902 - (void)addMaskingLayer:(QMaskingLayer *)layer;
903
905 - (void)updateMaskingLayer:(QMaskingLayer *)layer;
906
908 - (void)removeMaskingLayer:(QMaskingLayer *)layer;
909
911 @property (nonatomic, readonly) NSArray <QMaskingLayer *> *maskingLayers;
912
913 @end
914
915
916 #pragma mark - Snapshot
917
920 @interface QMapView (Snapshot)
921
927 - (UIImage *)takeSnapshot __attribute__ ((deprecated("use - (void)takeSnapshotInRect:(CGRect)rect completion:(void (^)(UIImage *resultImage))completion instead")));
928
935 - (void)takeSnapshotInRect:(CGRect)rect completion:(void (^)(UIImage *resultImage))completion;
936
944 - (void)takeSnapshotInRect:(CGRect)rect timeout:(CFTimeInterval)timeout completion:(void (^)(UIImage *resultImage))completion;
945
954 - (void)takeSnapshotInRect:(CGRect)rect timeout:(CFTimeInterval)timeout afterScreenUpdates:(BOOL)afterUpdates completion:(void (^)(UIImage *resultImage))completion;
955
956 @end
957
958 #pragma mark - QPoiInfo
959
963 @interface QPoiInfo : NSObject
964
968 @property (nonatomic, copy) NSString *uid;
969
973 @property (nonatomic, copy) NSString *name;
974
978 @property (nonatomic, assign) CLLocationCoordinate2D coordinate;
979
980 @end
981
985 @interface QIndoorPoiInfo : QPoiInfo
986
990 @property (nonatomic, copy) NSString *levelName;
991
995 @property (nonatomic, copy) NSString *buildingGUID;
996
1000 @property (nonatomic, copy) NSString *buildingName;
1001
1002 @end
1003
1008 @interface QPointEventInfo : QPoiInfo
1009
1013 @property (nonatomic, copy) NSString *source;
1014
1018 @property (nonatomic, copy) NSString *eventName;
1019
1023 @property (nonatomic, copy) NSString *road;
1024
1028 @property (nonatomic, copy) NSString *detail;
1029
1033 @property (nonatomic, assign) NSTimeInterval startTime;
1034
1038 @property (nonatomic, assign) NSTimeInterval endTime;
1039
1043 @property (nonatomic, assign) NSTimeInterval updateTime;
1044
1045 @end
1046
1052 @interface QSubPoiInfo : QPoiInfo
1053
1057 @property (nonatomic, copy) NSString *parentID;
1058
1059 @end
1060
1064 @interface QMapView (Debug)
1065
1069 - (NSString *)getDebugError;
1070
1071 @end
1072
1073 @interface QMapView (Cache)
1074
1078 + (void)clearMapCache;
1079
1080 @end
1081
1082 #pragma mark - QMapViewDelegate
1083
1087 @protocol QMapViewDelegate <NSObject>
1088
1089 @optional
1090
1096 - (void)mapViewAuthenticationDidComplete:(QMapView *)mapView;
1097
1106 - (void)mapViewAuthentication:(QMapView *)mapView didFailWithError:(NSError *)error;
1107
1113 - (void)mapViewInitComplete:(QMapView *)mapView;
1114
1120 - (void)mapViewFirstRenderDidComplete:(QMapView *)mapView;
1121
1126 - (void)mapViewStatusChangesCompleted:(QMapView *)mapView;
1127
1132 - (void)mapViewDidMoveToCameraRestricted:(QMapView *)mapView;
1133
1140 - (void)mapViewDidFailLoadingMap:(QMapView *)mapView withError:(NSError *)error;
1141
1148 - (void)mapView:(QMapView *)mapView regionWillChangeAnimated:(BOOL)animated gesture:(BOOL)bGesture;
1149
1154 - (void)mapViewRegionChange:(QMapView *)mapView;
1155
1162 - (void)mapView:(QMapView *)mapView regionDidChangeAnimated:(BOOL)animated gesture:(BOOL)bGesture;
1163
1170 - (void)mapView:(QMapView *)mapView willMoveAnimated:(BOOL)animated gesture:(BOOL)bGesture;
1171
1178 - (void)mapView:(QMapView *)mapView didMoveAnimated:(BOOL)animated gesture:(BOOL)bGesture;
1179
1186 - (void)mapView:(QMapView *)mapView willZoomAnimated:(BOOL)animated gesture:(BOOL)bGesture;
1187
1194 - (void)mapView:(QMapView *)mapView didZoomAnimated:(BOOL)animated gesture:(BOOL)bGesture;
1195
1202 - (void)mapView:(QMapView *)mapView scaleViewChanged:(CGFloat)unitLength;
1203
1209 - (void)mapView:(QMapView *)mapView gestureDidTrigger:(QGestureType)gestureType;
1210
1218 - (void)mapView:(QMapView *)mapView gestureDidEnd:(QGestureType)gestureType;
1219
1224 - (void)mapViewDrawFrame:(QMapView *)mapView;
1225
1230 - (void)mapUpdateFinished:(QMapView *)mapView;
1231
1237 - (void)mapView:(QMapView *)mapView didTapAtCoordinate:(CLLocationCoordinate2D)coordinate;
1238
1244 - (void)mapView:(QMapView *)mapView didTapPoi:(QPoiInfo *)poi;
1245
1251 - (void)mapView:(QMapView *)mapView didTapOverlay:(id<QOverlay>)overlay __attribute__ ((deprecated("use - (void)mapView:(QMapView *)mapView didTapOverlay:(id<QOverlay>)overlay coordinate:(CLLocationCoordinate2D)coordinate instead")));
1252
1261 - (void)mapView:(QMapView *)mapView didTapOverlay:(id<QOverlay>)overlay coordinate:(CLLocationCoordinate2D)coordinate;
1262
1268 - (void)mapView:(QMapView *)mapView didTapMarkerOverlayCallout:(QMarker *)markerOverlay;
1269
1278 - (void)mapView:(QMapView *)mapView markerOverlay:(QMarker *)markerOverlay didChangeDragState:(QMarkerViewDragState)newState
1279 fromOldState:(QMarkerViewDragState)oldState;
1280
1286 - (void)mapView:(QMapView *)mapView didTapMyLocation:(CLLocationCoordinate2D)location;
1287
1294 - (QAnnotationView *)mapView:(QMapView *)mapView viewForAnnotation:(id <QAnnotation>)annotation;
1295
1302 - (UIView *)mapView:(QMapView *)mapView customCalloutForAnnotationView:(QAnnotationView *)annotationView;
1303
1309 - (void)mapView:(QMapView *)mapView didAddAnnotationViews:(NSArray<QAnnotationView *> *)views;
1310
1316 - (void)mapView:(QMapView *)mapView didSelectAnnotationView:(QAnnotationView *)view;
1317
1323 - (void)mapView:(QMapView *)mapView didAnnotationViewTapped:(QAnnotationView *)view;
1324
1330 - (void)mapView:(QMapView *)mapView didDeselectAnnotationView:(QAnnotationView *)view;
1331
1338 - (void)mapView:(QMapView *)mapView annotationView:(QAnnotationView *)view collidedViewsDidShow:(NSArray <UIView *> *)shownViews;
1339
1346 - (void)mapView:(QMapView *)mapView annotationView:(QAnnotationView *)view collidedViewsDidHide:(NSArray <UIView *> *)hiddenViews;
1347
1356 - (void)mapView:(QMapView *)mapView annotationView:(QAnnotationView *)view didChangeDragState:(QAnnotationViewDragState)newState
1357 fromOldState:(QAnnotationViewDragState)oldState;
1358
1366 - (void)mapView:(QMapView *)mapView annotationView:(QAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control;
1367
1373 - (void)mapView:(QMapView *)mapView annotationViewCalloutTapped:(QAnnotationView *)view;
1374
1381 - (QOverlayView *)mapView:(QMapView *)mapView viewForOverlay:(id <QOverlay>)overlay;
1382
1388 - (void)mapView:(QMapView *)mapView didAddOverlayViews:(NSArray *)overlayViews;
1389
1394 - (void)mapViewWillStartLocatingUser:(QMapView *)mapView;
1395
1400 - (void)mapViewDidStopLocatingUser:(QMapView *)mapView;
1401
1408 - (void)mapView:(QMapView *)mapView didUpdateUserLocation:(QUserLocation *)userLocation fromHeading:(BOOL)fromHeading;
1414 - (void)mapView:(QMapView *)mapView didFailToLocateUserWithError:(NSError *)error;
1415
1422 - (void)mapView:(QMapView *)mapView didChangeUserTrackingMode:(QUserTrackingMode)mode animated:(BOOL)animated;
1423
1428 - (void)locationManagerDidChangeAuthorization:(QMapView *)mapView;
1429
1434 - (void)mapViewLogger:(QMapView *)mapView logMessage:(NSString *)text;
1435
1436 @end
+[QMapView(Cache) clearMapCache]
void clearMapCache()
清理地图缓存数据。注: 此接口必须在地图初始化前调用
QIndoorPoiInfo
点击室内图上文字图标的数据信息
Definition: QMapView.h:986
QMapView(UserLocation)::userLocationVisible
BOOL userLocationVisible
当前位置在地图中是否可见
Definition: QMapView.h:666
QMapView::preferredFramesPerSecond
NSInteger preferredFramesPerSecond
当前地图最大渲染帧数，默认为60
Definition: QMapView.h:142
QMapView(Annotation)::selectedAnnotations
NSArray< id< QAnnotation > > * selectedAnnotations
当前选中的annotations get: 处于选中的标注数组，其count == 0 或者 1 set: 数组中的第一个annotation会被选中 (index = 0)，其他则忽略....
Definition: QMapView.h:706
QBasicMapViewLayer
执行地图动画对应的layer.
Definition: QBasicMapViewLayer.h:37
QPoiInfo
点击底图上文字图标的数据信息
Definition: QMapView.h:964
QMapView(Snapshot)
截图相关API
Definition: QMapView.h:920
QMapView
地图view的核心类
Definition: QMapView.h:51
QMapView::scrollEnabled
BOOL scrollEnabled
Definition: QMapView.h:513
QMapView::centerCoordinate
CLLocationCoordinate2D centerCoordinate
中心点经纬度
Definition: QMapView.h:293
QAnnotationView
annotation数据的内容展示View
Definition: QAnnotationView.h:20
QMapView::metersPerPointAtCurrentZoomLevel
double metersPerPointAtCurrentZoomLevel
在当前缩放级别下, 基于地图中心点, 1 screen point 对应的距离(单位是米)
Definition: QMapView.h:488
QUserLocation
定位信息类
Definition: QUserLocation.h:16
QMapView::maxZoomLevel
CGFloat maxZoomLevel
最大缩放级别, 默认 maxZoomLevel = 20
Definition: QMapView.h:316
QMapView(UserLocation)::desiredAccuracy
CLLocationAccuracy desiredAccuracy
设定定位精度。默认为kCLLocationAccuracyBest
Definition: QMapView.h:617
QMapView::logoCenter
CGPoint logoCenter
logo位置，需设置在地图的bounds里
Definition: QMapView.h:231
-[QMapView(Debug) getDebugError]
NSString * getDebugError()
地图view的错误信息, 用于定位问题
QMapView::showsTraffic
BOOL showsTraffic
是否开启路况图，默认为 NO
Definition: QMapView.h:62
-[QMapView glPointRatio]
CGFloat glPointRatio()
返回每屏幕Point单位对应的OpenGL坐标系下的长度
QMapView::logoSize
CGSize logoSize
logo的宽高
Definition: QMapView.h:236
QMapView::alwaysTriggerDidTapCoordinateEnabled
BOOL alwaysTriggerDidTapCoordinateEnabled
当地图被单击时，是否总是触发 "地图点击回调"，默认为NO. 地图点击回调:
Definition: QMapView.h:533
QSubPoiInfo
点击AOI面子点图标的数据信息 uid 为子点的唯一标识
Definition: QMapView.h:1053
QMapView::minZoomLevel
CGFloat minZoomLevel
最小缩放级别, 默认 minZoomLevel = 3
Definition: QMapView.h:311
QMapView(QMaskingLayer)
Definition: QMapView.h:899
QMapView(UserLocation)::distanceFilter
CLLocationDistance distanceFilter
设定定位的最小更新距离。默认为kCLDistanceFilterNone，会提示任何移动
Definition: QMapView.h:622
QMapView::rotateEnabled
BOOL rotateEnabled
是否支持旋转. 默认为YES.
Definition: QMapView.h:523
QMapView::animationLayer
QBasicMapViewLayer * animationLayer
地图动画Layer. 使用该layer 可以更灵活的组合 {centerCoordinate, zoomLevel, rotation, overlooking} 动画， 并且可以自定义其duratio...
Definition: QMapView.h:280
QMapView::visibleMapRect
QMapRect visibleMapRect
当前地图可见范围的mapRect
Definition: QMapView.h:376
-[QMapView API_AVAILABLE]
CLAuthorizationStatus authorizationStatus API_AVAILABLE(ios(14))
定位权限状态
QMapViewDelegate-p
QMapViewDelegate:MapView的Delegate,mapView通过此类来通知用户对应的事件
Definition: QMapView.h:1087
QMapView::region
QCoordinateRegion region
当前地图的经纬度范围，设定的该范围可能会被调整为适合地图窗口显示的范围
Definition: QMapView.h:400
QMapView::rotation
CGFloat rotation
旋转角度, 正角度向右转, 单位(角度)
Definition: QMapView.h:344
QMapView::handDrawMapEnabled
BOOL handDrawMapEnabled
是否开启手绘图，默认为 NO
Definition: QMapView.h:57
QMapView(AOILayer)
Definition: QMapView.h:879
QPointEventInfo
点击点事件图标的数据信息 可通过 discription 获取快捷点事件简介
Definition: QMapView.h:1009
QMapView::delegate
id< QMapViewDelegate > delegate
地图回调
Definition: QMapView.h:78
QAnnotation-p
该类为标注点的protocol，提供了标注类的基本信息函数
Definition: QAnnotation.h:16
QMapView(Overlay)::overlays
NSArray * overlays
当前mapView中已经添加的Overlay数组
Definition: QMapView.h:797
QMapView::showsCompass
BOOL showsCompass
是否显示指南针，默认为NO
Definition: QMapView.h:137
QMapView::showsScale
BOOL showsScale
是否显示比例尺，默认为YES
Definition: QMapView.h:105
QMapView::shows3DBuildings
BOOL shows3DBuildings
是否显示建筑物样式为3D效果，默认为YES
Definition: QMapView.h:115
QMapView(Overlay)
地图view的线面覆盖物相关的API
Definition: QMapView.h:792
QUserLocationPresentation
用户定位图标自定义样式类
Definition: QUserLocationPresentation.h:74
QMapView::centerOffsetV2
CGPoint centerOffsetV2
设置中心点偏移，向右向下为正，默认为(0.5, 0.5)，范围是 [0.05, 0.95]。若超出范围，则被裁减到 [0.05, 0.95]。
Definition: QMapView.h:195
QMapView(UserLocation)::pausesLocationUpdatesAutomatically
BOOL pausesLocationUpdatesAutomatically
Definition: QMapView.h:638
QMapView(UserLocation)::allowsBackgroundLocationUpdates
BOOL allowsBackgroundLocationUpdates
以上是否允许后台定位。ios9以上可用. 请参考CLLocationManager.allowsBackgroundLocationUpdates
Definition: QMapView.h:633
QMapView(Cache)
Definition: QMapView.h:1073
QOverlay-p
QOverlay:地图覆盖物的基类，所有地图的覆盖物需要继承自此类
Definition: QOverlay.h:15
QMapView(CustomLayer)
个性化图层相关的API
Definition: QMapView.h:861
QMapView::showsBaseMap
BOOL showsBaseMap
是否显示底图，默认为YES
Definition: QMapView.h:132
QMarker
标记覆盖物.
Definition: QMarker.h:23
QMapView(UserLocation)::locatorZIndex
int locatorZIndex
位置图标的显示顺序，决定了它与其它QOverlayView的压盖关系. 默认为10000000.
Definition: QMapView.h:607
QAOILayer
AOILayer 类
Definition: QAOILayer.h:19
-[QMapView API_AVAILABLE]
CLAccuracyAuthorization accuracyAuthorization API_AVAILABLE(ios(14))
定位精度权限状态
QMapRect
平面投影矩形结构定义
Definition: QGeometry.h:92
QMapView::overlookingEnabled
BOOL overlookingEnabled
是否支持俯视. 默认为YES.
Definition: QMapView.h:518
QMapView::zoomLevel
CGFloat zoomLevel
缩放级别, 范围 [minZoomLevel, maxZoomLevel]
Definition: QMapView.h:306
QMapView(UserLocation)
地图view的定位相关的API
Definition: QMapView.h:578
QMapView(UserLocation)::headingFilter
CLLocationDegrees headingFilter
设定最小更新角度。默认为2度，设定为kCLHeadingFilterNone会提示任何角度改变
Definition: QMapView.h:628
QMapView::labelSize
QMapLabelSize labelSize
设置底图上的标注的字体大小
Definition: QMapView.h:127
QMapView(UserLocation)::showsUserLocation
BOOL showsUserLocation
开启定位并展示位置图标.
Definition: QMapView.h:595
QMapView(Annotation)::annotations
NSArray * annotations
当前地图View的已经添加的标注数组
Definition: QMapView.h:699
-[QMapView glProjectionMatrix]
float * glProjectionMatrix()
获取当前地图projection矩阵
QMapView(UserLocation)::locatorDisplayLevel
QOverlayLevel locatorDisplayLevel
位置图标的展示层级. 默认 QOverlayLevelAboveLabels
Definition: QMapView.h:600
QMapView::zoomEnabled
BOOL zoomEnabled
Definition: QMapView.h:503
QMapView::showsBuildings
BOOL showsBuildings
是否显示建筑物，默认为YES
Definition: QMapView.h:110
QMapView(UserLocation)::userLocatorPresentation
QUserLocationPresentation * userLocatorPresentation
地图view的定位标对象
Definition: QMapView.h:583
QMapView::scaleOrigin
CGPoint scaleOrigin
比例尺原点位置
Definition: QMapView.h:248
QMapView(Annotation)
地图view的点覆盖物相关的API
Definition: QMapView.h:694
QMapView::showsPoi
BOOL showsPoi
是否显示底图上的标注及名称，默认为YES
Definition: QMapView.h:120
-[QMapView glViewMatrix]
float * glViewMatrix()
获取当前地图view矩阵
QMapView::overlooking
CGFloat overlooking
Overlooking, 范围 [0, 45], 单位(角度)
Definition: QMapView.h:357
QMapView(Debug)
地图view的错误信息, 用于定位问题
Definition: QMapView.h:1064
QMapView::scaleSize
CGSize scaleSize
比例尺的尺寸
Definition: QMapView.h:253
QOverlayView
该类是地图覆盖物View的基类, 提供了绘制overlay的接口, 但是没有实际实现。希望不要直接实例化
Definition: QOverlayView.h:17
QCustomLayer
用于自定义图层的类
Definition: QCustomLayer.h:17
QMapView(UserLocation)::userTrackingMode
QUserTrackingMode userTrackingMode
定位用户位置的模式
Definition: QMapView.h:653
QMapView(UserLocation)::userLocation
QUserLocation * userLocation
当前位置信息
Definition: QMapView.h:612
QMapView(QMaskingLayer)::maskingLayers
NSArray< QMaskingLayer * > * maskingLayers
已添加的蒙层
Definition: QMapView.h:911
QCoordinateRegion
定义了地图的某一部份的数据结构
Definition: QGeometry.h:31
QPolygon
面覆盖物
Definition: QPolygon.h:15
QMaskingLayer
地图蒙层覆盖物
Definition: QMaskingLayer.h:16