TencentMapSDK_iOS_3D_v6.15.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
25typedef NS_ENUM(NSInteger, QUserTrackingMode)
26{
27 QUserTrackingModeNone = 0,
28 QUserTrackingModeFollow = 1,
29 QUserTrackingModeFollowWithHeading = 2
30};
31
32typedef NS_ENUM(NSUInteger, QMapLogoAnchor)
33{
34 QMapLogoAnchorRightBottom = 0,
35 QMapLogoAnchorLeftBottom,
36 QMapLogoAnchorLeftTop,
37 QMapLogoAnchorRightTop,
38 QMapLogoAnchorMax
39};
40
42@class QTrafficStyle;
43@protocol QMapViewDelegate;
44
45#pragma mark - QMapView
46
50@interface QMapView : UIView
51
52
57@property (nonatomic, assign, readonly) BOOL enabledMetal;
58
59
65@property (nonatomic, assign, getter = isHandDrawMapEnabled) BOOL handDrawMapEnabled;
66
70@property (nonatomic, assign) BOOL showsTraffic;
71
76- (void)setTrafficStyle:(QTrafficStyle *)trafficStyle;
77
78#pragma mark - Resources
79
85+ (void)loadPrefferedResourceFilesFromDirectory:(NSString *)path;
86
87#pragma mark - Basic
88
92@property (nonatomic, weak) id<QMapViewDelegate> delegate;
93
94/*
95 * @brief 地图类型
96 */
97@property (nonatomic, assign) QMapType mapType;
98
99
107- (void)setStyleType:(QMapStyleType)styleType DEPRECATED_ATTRIBUTE;
108
114- (void)setMapStyle:(int)styleType;
115
119@property (nonatomic) BOOL showsScale;
120
124@property (nonatomic) BOOL showsBuildings;
125
129@property (nonatomic) BOOL shows3DBuildings;
130
134@property (nonatomic) BOOL showsPoi;
135
141@property (nonatomic) QMapLabelSize labelSize;
142
146@property (nonatomic) BOOL showsBaseMap;
147
151@property (nonatomic) BOOL showsCompass;
152
156@property (nonatomic) NSInteger preferredFramesPerSecond;
157
161- (void)setCompassOffset:(CGPoint)offset;
162
171- (void)setForeignLanguage:(QMapLanguage)language;
172
176- (void)setWorldMapEnable:(BOOL)enable;
177
181- (void)setMapViewRenderWhenDetachedFromWindowEnabled:(BOOL)enabled;
182
186- (void)setMapViewRenderWhenAppInactiveEnabled:(BOOL)enabled;
187
191- (void)setCenterOffsetY:(float)offset __attribute__ ((deprecated("use - (void)setCenterOffsetV2:(CGPoint)offset animated:(BOOL)animated instead")));
192
196- (void)setCenterOffset:(CGPoint)offset __attribute__ ((deprecated("use - (void)setCenterOffsetV2:(CGPoint)offset animated:(BOOL)animated instead")));
197
204- (void)setCenterOffset:(CGPoint)offset animated:(BOOL)animated __attribute__ ((deprecated("use - (void)setCenterOffsetV2:(CGPoint)offset animated:(BOOL)animated instead")));
205
209@property(nonatomic) CGPoint centerOffsetV2;
210
217- (void)setCenterOffsetV2:(CGPoint)offset animated:(BOOL)animated;
218
224- (void)setLogoOffset:(CGPoint)offset DEPRECATED_ATTRIBUTE;
225
232- (void)setLogoMargin:(CGPoint)margin anchor:(QMapLogoAnchor)anchor;
233
239- (void)setLogoScale:(CGFloat)scale;
240
241
245@property (nonatomic, assign) CGPoint logoCenter;
246
250@property (nonatomic, readonly) CGSize logoSize;
251
257- (void)setScaleViewOffset:(CGPoint)offset;
258
262@property (nonatomic, assign) CGPoint scaleOrigin;
263
267@property (nonatomic, readonly) CGSize scaleSize;
268
273- (void)setScaleViewFadeEnable:(BOOL)enable;
274
280- (void)setRoadEventVisible:(BOOL)visible DEPRECATED_ATTRIBUTE;
281
287- (void)setBuildingBlackList:(QMapRect*)noBuildingList count:(int)count;
288
294@property (nonatomic, readonly) QBasicMapViewLayer *animationLayer;
295
300- (void)setGLMapDefaultGroundColor:(UIColor *)defaultColor;
301
302#pragma mark - MapStatus
303
307@property (nonatomic, assign) CLLocationCoordinate2D centerCoordinate;
308
315- (void)setCenterCoordinate:(CLLocationCoordinate2D)coordinate animated:(BOOL)animated;
316
320@property (nonatomic, assign) CGFloat zoomLevel;
321
325@property (nonatomic, readonly) CGFloat minZoomLevel;
326
330@property (nonatomic, readonly) CGFloat maxZoomLevel;
331
338- (void)setMinZoomLevel:(CGFloat)minZoomLevel maxZoomLevel:(CGFloat)maxZoomLevel;
339
345- (void)setZoomLevelMultiplierForZoomIn:(CGFloat)zoomInMultiplier zoomOut:(CGFloat)zoomOutMultiplier;
346
353- (void)setZoomLevel:(CGFloat)zoomLevel animated:(BOOL)animated;
354
358@property (nonatomic, assign) CGFloat rotation;
359
366- (void)setRotation:(CGFloat)rotation animated:(BOOL)animated;
367
371@property (nonatomic, assign) CGFloat overlooking;
372
377- (void)enableAutoMaxOverlooking:(BOOL)enable;
378
385- (void)setOverlooking:(CGFloat)overlooking animated:(BOOL)animated;
386
390@property (nonatomic) QMapRect visibleMapRect;
391
399- (void)setVisibleMapRect:(QMapRect)mapRect animated:(BOOL)animated;
400
409- (void)setVisibleMapRect:(QMapRect)mapRect edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated;
410
414@property (nonatomic) QCoordinateRegion region;
415
423- (void)setRegion:(QCoordinateRegion)region animated:(BOOL)animated;
424
433- (void)setRegion:(QCoordinateRegion)region edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated;
434
441- (QMapRect)mapRectThatFits:(QMapRect)mapRect edgePadding:(UIEdgeInsets)insets;
442
452- (QMapRect)mapRectThatFits: (QMapRect)mapRect
453 containsCalloutView:(BOOL)bContainsCalloutView
454 annotations:(NSArray<id<QAnnotation> >*)annotations
455 edgePadding:(UIEdgeInsets)insets;
456
464- (CGFloat)zoomLevelThatFits:(QMapRect)mapRect edgePadding:(UIEdgeInsets)insets outCenterCoordinate:(CLLocationCoordinate2D *)outCoordinate;
465
472-(void)setLimitMapRect:(QMapRect)mapRect mode:(QMapLimitRectFitMode)mode;
473
478- (float *)glViewMatrix;
479
485
491- (CGPoint)glVertexForCoordinate:(CLLocationCoordinate2D)coordinate;
492
497- (CGFloat)glPointRatio;
498
502@property (nonatomic, readonly) double metersPerPointAtCurrentZoomLevel;
503
510- (double)metersPerPointAtLatitude:(CLLocationDegrees)latitude zoomLevel:(CGFloat)zoomLevel;
511
512#pragma mark - Gesture Control
513
517@property(nonatomic, getter=isZoomEnabled) BOOL zoomEnabled;
518
519/*
520 * @brief 以地图中心为中心, 默认为NO(即以手势为中心)
521 */
522@property (nonatomic, assign, getter = isKeepCenterDuringZoom) BOOL keepCenterDuringZoom;
523
527@property(nonatomic, getter=isScrollEnabled) BOOL scrollEnabled;
528
532@property (nonatomic, assign, getter=isOverlookingEnabled) BOOL overlookingEnabled;
533
537@property (nonatomic, assign, getter=isRotateEnabled) BOOL rotateEnabled;
538
547@property (nonatomic, assign) BOOL alwaysTriggerDidTapCoordinateEnabled;
548
549#pragma mark - Coordinate Convert
550
558- (CGPoint)convertCoordinate:(CLLocationCoordinate2D)coordinate toPointToView:(UIView *)view;
559
567- (CLLocationCoordinate2D)convertPoint:(CGPoint)point toCoordinateFromView:(UIView *)view;
568
576- (CGRect)convertRegion:(QCoordinateRegion)region toRectToView:(UIView *)view;
577
585- (QCoordinateRegion)convertRect:(CGRect)rect toRegionFromView:(UIView *)view;
586
587@end
588
592@interface QMapView (UserLocation)
593
597@property (nonatomic, readonly) QUserLocationPresentation *userLocatorPresentation;
598
604- (void)configureUserLocationPresentation:(QUserLocationPresentation *)presentation;
605
609@property (nonatomic, assign) BOOL showsUserLocation;
610
614@property (nonatomic, assign) QOverlayLevel locatorDisplayLevel;
615
621@property (nonatomic, assign) int locatorZIndex;
622
626@property (nonatomic, readonly) QUserLocation *userLocation;
627
631@property (nonatomic) CLLocationAccuracy desiredAccuracy;
632
636@property (nonatomic) CLLocationDistance distanceFilter;
637
638
642@property (nonatomic) CLLocationDegrees headingFilter;
643
647@property(assign, nonatomic) BOOL allowsBackgroundLocationUpdates;
648
652@property(assign, nonatomic) BOOL pausesLocationUpdatesAutomatically;
653
657@property(nonatomic, readonly) CLAccuracyAuthorization accuracyAuthorization API_AVAILABLE(ios(14));
658
662@property(nonatomic, readonly) CLAuthorizationStatus authorizationStatus API_AVAILABLE(ios(14));
663
667@property (nonatomic) QUserTrackingMode userTrackingMode;
668
675- (void)setUserTrackingMode:(QUserTrackingMode)mode animated:(BOOL)animated;
676
680@property (nonatomic, readonly, getter=isUserLocationVisible) BOOL userLocationVisible;
681
685- (void)setUserLocationHidden:(BOOL)hidden;
686
690- (void)setUserLocationCompassHidden:(BOOL)hidden;
691
695- (void)setUserLocationNavigationGravitylineHidden:(BOOL)hidden;
696
701- (void)requestTempPrecisedLocation:(QMapView *)mapView purposeKey:(NSString *)key completion:(void(^)(NSError * error))completion API_AVAILABLE(ios(14));
702
703@end
704
708@interface QMapView (Annotation)
709
713@property(nonatomic, readonly) NSArray *annotations;
714
720@property (nonatomic, copy) NSArray<id<QAnnotation>> *selectedAnnotations;
721
727- (NSSet<id <QAnnotation>> *)annotationsInMapRect:(QMapRect)mapRect;
728
734- (void)addAnnotation:(id <QAnnotation>)annotation;
735
740- (void)addAnnotations:(NSArray *)annotations;
741
746- (void)removeAnnotation:(id <QAnnotation>)annotation;
747
752- (void)removeAnnotations:(NSArray *)annotations;
753
759- (QAnnotationView *)viewForAnnotation:(id <QAnnotation>)annotation;
760
766- (QAnnotationView *)dequeueReusableAnnotationViewWithIdentifier:(NSString *)identifier;
767
774- (void)bringAnnotationToFront:(id <QAnnotation>)annotation DEPRECATED_ATTRIBUTE;
775
781- (void)selectAnnotation:(id <QAnnotation>)annotation animated:(BOOL)animated;
782
788- (void)deselectAnnotation:(id <QAnnotation>)annotation animated:(BOOL)animated;
789
796- (void)showAnnotations:(NSArray<id<QAnnotation>> *)annotations edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated;
797
808@property (nonatomic, assign) NSInteger maxCollisionVisibleAnnotationCount;
809
810@end
811
812
813#pragma mark - Overlay
814
818@interface QMapView (Overlay)
819
823@property (nonatomic, readonly) NSArray *overlays;
824
829- (void)addOverlay:(id <QOverlay>)overlay;
830
835- (void)addOverlays:(NSArray<id <QOverlay>> *)overlays;
836
842- (void)addMultiPolygons:(NSArray <QPolygon *> *)polygons;
843
848- (void)removeOverlay:(id <QOverlay>)overlay;
849
854- (void)removeOverlays:(NSArray<id <QOverlay>> *)overlays;
855
861- (QOverlayView *)viewForOverlay:(id <QOverlay>)overlay;
862
869- (void)showOverlays:(NSArray<id<QOverlay>> *)overlays edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated;
870
877- (void)showQMarkers:(NSArray<QMarker *> *)markers edgePadding:(UIEdgeInsets)insets animated:(BOOL)animated;
878
879@end
880
881
882#pragma mark - CustomLayer
883
887@interface QMapView (CustomLayer)
888
893- (void)addCustomLayer:(QCustomLayer *)layer;
894
899- (void)removeCustomLayer:(QCustomLayer *)layer;
900
901@end
902
903#pragma mark - POILayer
904
905@interface QMapView (AOILayer)
906
912
913- (void)addAOILayer:(QAOILayer *)layer callback:(void(^)(BOOL success))callback;
914
919- (void)removeAOILayer:(QAOILayer *)layer;
920
921@end
922
923#pragma mark - QMaskingLayer
924
925@interface QMapView (QMaskingLayer)
926
928- (void)addMaskingLayer:(QMaskingLayer *)layer;
929
931- (void)updateMaskingLayer:(QMaskingLayer *)layer;
932
934- (void)removeMaskingLayer:(QMaskingLayer *)layer;
935
937@property (nonatomic, readonly) NSArray <QMaskingLayer *> *maskingLayers;
938
939@end
940
941
942#pragma mark - Snapshot
946@interface QMapView (Snapshot)
947
953- (UIImage *)takeSnapshot __attribute__ ((deprecated("use - (void)takeSnapshotInRect:(CGRect)rect completion:(void (^)(UIImage *resultImage))completion instead")));
954
961- (void)takeSnapshotInRect:(CGRect)rect completion:(void (^)(UIImage *resultImage))completion;
962
970- (void)takeSnapshotInRect:(CGRect)rect timeout:(CFTimeInterval)timeout completion:(void (^)(UIImage *resultImage))completion;
971
980- (void)takeSnapshotInRect:(CGRect)rect timeout:(CFTimeInterval)timeout afterScreenUpdates:(BOOL)afterUpdates completion:(void (^)(UIImage *resultImage))completion;
981
982@end
983
984#pragma mark - QPoiInfo
985
989@interface QPoiInfo : NSObject
990
994@property (nonatomic, copy) NSString *uid;
995
999@property (nonatomic, copy) NSString *name;
1000
1004@property (nonatomic, assign) CLLocationCoordinate2D coordinate;
1005
1006@end
1007
1012
1016@property (nonatomic, copy) NSString *levelName;
1017
1021@property (nonatomic, copy) NSString *buildingGUID;
1022
1026@property (nonatomic, copy) NSString *buildingName;
1027
1028@end
1029
1035
1039@property (nonatomic, copy) NSString *source;
1040
1044@property (nonatomic, copy) NSString *eventName;
1045
1049@property (nonatomic, copy) NSString *road;
1050
1054@property (nonatomic, copy) NSString *detail;
1055
1059@property (nonatomic, assign) NSTimeInterval startTime;
1060
1064@property (nonatomic, assign) NSTimeInterval endTime;
1065
1069@property (nonatomic, assign) NSTimeInterval updateTime;
1070
1071@end
1072
1077
1079
1083@property (nonatomic, copy) NSString *parentID;
1084
1085@end
1086
1090@interface QMapView (Debug)
1091
1095- (NSString *)getDebugError;
1096
1097@end
1098
1099@interface QMapView (Cache)
1100
1105
1106@end
1107
1108#pragma mark - QMapViewDelegate
1109
1113@protocol QMapViewDelegate <NSObject>
1114
1115@optional
1116
1122- (void)mapViewAuthenticationDidComplete:(QMapView *)mapView;
1123
1132- (void)mapViewAuthentication:(QMapView *)mapView didFailWithError:(NSError *)error;
1133
1139- (void)mapViewInitComplete:(QMapView *)mapView;
1140
1146- (void)mapViewFirstRenderDidComplete:(QMapView *)mapView;
1147
1152- (void)mapViewStatusChangesCompleted:(QMapView *)mapView;
1153
1158- (void)mapViewDidMoveToCameraRestricted:(QMapView *)mapView;
1159
1166- (void)mapViewDidFailLoadingMap:(QMapView *)mapView withError:(NSError *)error;
1167
1174- (void)mapView:(QMapView *)mapView regionWillChangeAnimated:(BOOL)animated gesture:(BOOL)bGesture;
1175
1180- (void)mapViewRegionChange:(QMapView *)mapView;
1181
1188- (void)mapView:(QMapView *)mapView regionDidChangeAnimated:(BOOL)animated gesture:(BOOL)bGesture;
1189
1196- (void)mapView:(QMapView *)mapView willMoveAnimated:(BOOL)animated gesture:(BOOL)bGesture;
1197
1204- (void)mapView:(QMapView *)mapView didMoveAnimated:(BOOL)animated gesture:(BOOL)bGesture;
1205
1212- (void)mapView:(QMapView *)mapView willZoomAnimated:(BOOL)animated gesture:(BOOL)bGesture;
1213
1220- (void)mapView:(QMapView *)mapView didZoomAnimated:(BOOL)animated gesture:(BOOL)bGesture;
1221
1228- (void)mapView:(QMapView *)mapView scaleViewChanged:(CGFloat)unitLength;
1229
1235- (void)mapView:(QMapView *)mapView gestureDidTrigger:(QGestureType)gestureType;
1236
1244- (void)mapView:(QMapView *)mapView gestureDidEnd:(QGestureType)gestureType;
1245
1250- (void)mapViewDrawFrame:(QMapView *)mapView;
1251
1256- (void)mapUpdateFinished:(QMapView *)mapView;
1257
1263- (void)mapView:(QMapView *)mapView didTapAtCoordinate:(CLLocationCoordinate2D)coordinate;
1264
1270- (void)mapView:(QMapView *)mapView didTapPoi:(QPoiInfo *)poi;
1271
1277- (void)mapView:(QMapView *)mapView didTapOverlay:(id<QOverlay>)overlay __attribute__ ((deprecated("use - (void)mapView:(QMapView *)mapView didTapOverlay:(id<QOverlay>)overlay coordinate:(CLLocationCoordinate2D)coordinate instead")));
1278
1287- (void)mapView:(QMapView *)mapView didTapOverlay:(id<QOverlay>)overlay coordinate:(CLLocationCoordinate2D)coordinate;
1288
1294- (void)mapView:(QMapView *)mapView didTapMarkerOverlayCallout:(QMarker *)markerOverlay;
1295
1304- (void)mapView:(QMapView *)mapView markerOverlay:(QMarker *)markerOverlay didChangeDragState:(QMarkerViewDragState)newState
1305 fromOldState:(QMarkerViewDragState)oldState;
1306
1312- (void)mapView:(QMapView *)mapView didTapMyLocation:(CLLocationCoordinate2D)location;
1313
1320- (QAnnotationView *)mapView:(QMapView *)mapView viewForAnnotation:(id <QAnnotation>)annotation;
1321
1328- (UIView *)mapView:(QMapView *)mapView customCalloutForAnnotationView:(QAnnotationView *)annotationView;
1329
1335- (void)mapView:(QMapView *)mapView didAddAnnotationViews:(NSArray<QAnnotationView *> *)views;
1336
1342- (void)mapView:(QMapView *)mapView didSelectAnnotationView:(QAnnotationView *)view;
1343
1349- (void)mapView:(QMapView *)mapView didAnnotationViewTapped:(QAnnotationView *)view;
1350
1356- (void)mapView:(QMapView *)mapView didDeselectAnnotationView:(QAnnotationView *)view;
1357
1363- (void)mapView:(QMapView *)mapView didAddAnnotation:(id<QAnnotation>)annotation;
1364
1370- (void)mapView:(QMapView *)mapView didRemoveAnnotation:(id<QAnnotation>)annotation;
1371
1377- (void)mapView:(QMapView *)mapView didTapAnnotation:(id<QAnnotation>)annotation;
1378
1385- (void)mapView:(QMapView *)mapView annotationView:(QAnnotationView *)view collidedViewsDidShow:(NSArray <UIView *> *)shownViews;
1386
1393- (void)mapView:(QMapView *)mapView annotationView:(QAnnotationView *)view collidedViewsDidHide:(NSArray <UIView *> *)hiddenViews;
1394
1403- (void)mapView:(QMapView *)mapView annotationView:(QAnnotationView *)view didChangeDragState:(QAnnotationViewDragState)newState
1404 fromOldState:(QAnnotationViewDragState)oldState;
1405
1413- (void)mapView:(QMapView *)mapView annotationView:(QAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control;
1414
1420- (void)mapView:(QMapView *)mapView annotationViewCalloutTapped:(QAnnotationView *)view;
1421
1428- (QOverlayView *)mapView:(QMapView *)mapView viewForOverlay:(id <QOverlay>)overlay;
1429
1435- (void)mapView:(QMapView *)mapView didAddOverlayViews:(NSArray *)overlayViews;
1436
1441- (void)mapViewWillStartLocatingUser:(QMapView *)mapView;
1442
1447- (void)mapViewDidStopLocatingUser:(QMapView *)mapView;
1448
1455- (void)mapView:(QMapView *)mapView didUpdateUserLocation:(QUserLocation *)userLocation fromHeading:(BOOL)fromHeading;
1461- (void)mapView:(QMapView *)mapView didFailToLocateUserWithError:(NSError *)error;
1462
1469- (void)mapView:(QMapView *)mapView didChangeUserTrackingMode:(QUserTrackingMode)mode animated:(BOOL)animated;
1470
1475- (void)locationManagerDidChangeAuthorization:(QMapView *)mapView;
1476
1481- (void)mapViewLogger:(QMapView *)mapView logMessage:(NSString *)text;
1482
1483@end
NSArray * annotations
当前地图View的已经添加的标注数组
定义 QMapView.h:713
NSInteger maxCollisionVisibleAnnotationCount
碰撞检测后最大保留的 Marker 数量
定义 QMapView.h:808
NSArray< id< QAnnotation > > * selectedAnnotations
当前选中的annotations get: 处于选中的标注数组,其count == 0 或者 1 set: 数组中的第一个annotation会被选中 (index = 0),其他则忽略....
定义 QMapView.h:720
void clearMapCache()
清理地图缓存数据。注: 此接口必须在地图初始化前调用
NSString * getDebugError()
地图view的错误信息, 用于定位问题
NSArray * overlays
当前mapView中已经添加的Overlay数组
定义 QMapView.h:823
NSArray< QMaskingLayer * > * maskingLayers
已添加的蒙层
定义 QMapView.h:937
(deprecated("use - (void)takeSnapshotInRect:(CGRect)rect completion:(void (^)(UIImage *resultImage))completion instead")) __attribute__()
截图
定义 QMapView.h:953
CLAuthorizationStatus authorizationStatus API_AVAILABLE(ios(14))
定位权限状态
CLLocationAccuracy desiredAccuracy
设定定位精度。默认为kCLLocationAccuracyBest
定义 QMapView.h:631
BOOL userLocationVisible
当前位置在地图中是否可见
定义 QMapView.h:680
QUserLocationPresentation * userLocatorPresentation
地图view的定位标对象
定义 QMapView.h:597
CLLocationDistance distanceFilter
设定定位的最小更新距离。默认为kCLDistanceFilterNone,会提示任何移动
定义 QMapView.h:636
CLLocationDegrees headingFilter
设定最小更新角度。默认为2度,设定为kCLHeadingFilterNone会提示任何角度改变
定义 QMapView.h:642
BOOL pausesLocationUpdatesAutomatically
定义 QMapView.h:652
QUserTrackingMode userTrackingMode
定位用户位置的模式
定义 QMapView.h:667
QUserLocation * userLocation
当前位置信息
定义 QMapView.h:626
BOOL showsUserLocation
开启定位并展示位置图标.
定义 QMapView.h:609
QOverlayLevel locatorDisplayLevel
位置图标的展示层级. 默认 QOverlayLevelAboveLabels
定义 QMapView.h:614
BOOL allowsBackgroundLocationUpdates
以上是否允许后台定位。ios9以上可用. 请参考CLLocationManager.allowsBackgroundLocationUpdates
定义 QMapView.h:647
int locatorZIndex
位置图标的显示顺序,决定了它与其它QOverlayView的压盖关系. 默认为10000000.
定义 QMapView.h:621
CLAccuracyAuthorization accuracyAuthorization API_AVAILABLE(ios(14))
定位精度权限状态
AOILayer 类
定义 QAOILayer.h:19
annotation数据的内容展示View
定义 QAnnotationView.h:20
执行地图动画对应的layer.
定义 QBasicMapViewLayer.h:37
用于自定义图层的类
定义 QCustomLayer.h:17
点击室内图上文字图标的数据信息
定义 QMapView.h:1012
NSString * buildingGUID
所在室内图唯一标识
定义 QMapView.h:1021
NSString * buildingName
所在室内图楼的名称
定义 QMapView.h:1026
NSString * levelName
所在室内图楼层
定义 QMapView.h:1016
地图view的核心类
定义 QMapView.h:51
CGPoint scaleOrigin
比例尺原点位置
定义 QMapView.h:262
float * glProjectionMatrix()
获取当前地图projection矩阵
CGFloat glPointRatio()
返回每屏幕Point单位对应的OpenGL坐标系下的长度
BOOL overlookingEnabled
是否支持俯视. 默认为YES.
定义 QMapView.h:532
BOOL zoomEnabled
定义 QMapView.h:517
BOOL enabledMetal
是否开启Metal渲染,默认为 NO
定义 QMapView.h:57
QMapRect visibleMapRect
当前地图可见范围的mapRect
定义 QMapView.h:390
BOOL scrollEnabled
定义 QMapView.h:527
BOOL showsBaseMap
是否显示底图,默认为YES
定义 QMapView.h:146
QBasicMapViewLayer * animationLayer
地图动画Layer. 使用该layer 可以更灵活的组合 {centerCoordinate, zoomLevel, rotation, overlooking} 动画, 并且可以自定义其duratio...
定义 QMapView.h:294
CGPoint logoCenter
logo位置,需设置在地图的bounds里
定义 QMapView.h:245
BOOL showsCompass
是否显示指南针,默认为NO
定义 QMapView.h:151
BOOL showsPoi
是否显示底图上的标注及名称,默认为YES
定义 QMapView.h:134
CGSize logoSize
logo的宽高
定义 QMapView.h:250
double metersPerPointAtCurrentZoomLevel
在当前缩放级别下, 基于地图中心点, 1 screen point 对应的距离(单位是米)
定义 QMapView.h:502
QCoordinateRegion region
当前地图的经纬度范围,设定的该范围可能会被调整为适合地图窗口显示的范围
定义 QMapView.h:414
CGFloat maxZoomLevel
最大缩放级别, 默认 maxZoomLevel = 20
定义 QMapView.h:330
CGSize scaleSize
比例尺的尺寸
定义 QMapView.h:267
CGFloat rotation
旋转角度, 正角度向右转, 单位(角度)
定义 QMapView.h:358
BOOL shows3DBuildings
是否显示建筑物样式为3D效果,默认为YES
定义 QMapView.h:129
CGFloat overlooking
Overlooking, 范围 [0, 45], 单位(角度)
定义 QMapView.h:371
CGFloat minZoomLevel
最小缩放级别, 默认 minZoomLevel = 3
定义 QMapView.h:325
CGFloat zoomLevel
缩放级别, 范围 [minZoomLevel, maxZoomLevel]
定义 QMapView.h:320
QMapLabelSize labelSize
设置底图上的标注的字体大小
定义 QMapView.h:141
CLLocationCoordinate2D centerCoordinate
中心点经纬度
定义 QMapView.h:307
BOOL showsTraffic
是否开启路况图,默认为 NO
定义 QMapView.h:70
CGPoint centerOffsetV2
设置中心点偏移,向右向下为正,默认为(0.5, 0.5),范围是 [0.05, 0.95]。若超出范围,则被裁减到 [0.05, 0.95]。
定义 QMapView.h:209
BOOL showsBuildings
是否显示建筑物,默认为YES
定义 QMapView.h:124
NSInteger preferredFramesPerSecond
当前地图最大渲染帧数,默认为60
定义 QMapView.h:156
BOOL showsScale
是否显示比例尺,默认为YES
定义 QMapView.h:119
BOOL alwaysTriggerDidTapCoordinateEnabled
当地图被单击时,是否总是触发 "地图点击回调",默认为NO. 地图点击回调:
定义 QMapView.h:547
float * glViewMatrix()
获取当前地图view矩阵
BOOL rotateEnabled
是否支持旋转. 默认为YES.
定义 QMapView.h:537
id< QMapViewDelegate > delegate
地图回调
定义 QMapView.h:92
BOOL handDrawMapEnabled
是否开启手绘图,默认为 NO
定义 QMapView.h:65
标记覆盖物.
定义 QMarker.h:23
地图蒙层覆盖物
定义 QMaskingLayer.h:16
该类是地图覆盖物View的基类, 提供了绘制overlay的接口, 但是没有实际实现。希望不要直接实例化
定义 QOverlayView.h:17
点击底图上文字图标的数据信息
定义 QMapView.h:990
CLLocationCoordinate2D coordinate
经纬坐标
定义 QMapView.h:1004
NSString * uid
唯一标识(可能为空).
定义 QMapView.h:994
NSString * name
名字信息
定义 QMapView.h:999
点击点事件图标的数据信息 可通过 discription 获取快捷点事件简介
定义 QMapView.h:1035
NSString * source
事件来源
定义 QMapView.h:1039
NSString * detail
事件详情信息
定义 QMapView.h:1054
NSTimeInterval updateTime
事件更新时间
定义 QMapView.h:1069
NSTimeInterval startTime
事件开始时间
定义 QMapView.h:1059
NSString * eventName
事件类型
定义 QMapView.h:1044
NSTimeInterval endTime
事件结束时间
定义 QMapView.h:1064
NSString * road
事件发生道路
定义 QMapView.h:1049
面覆盖物
定义 QPolygon.h:15
点击AOI面子点图标的数据信息 uid 为子点的唯一标识
定义 QMapView.h:1079
NSString * parentID
子点的主点唯一标识
定义 QMapView.h:1083
自定义路况样式
定义 QMapView+Config.h:119
定位信息类
定义 QUserLocation.h:16
用户定位图标自定义样式类
定义 QUserLocationPresentation.h:74
定义了地图的某一部份的数据结构
定义 QGeometry.h:31
平面投影矩形结构定义
定义 QGeometry.h:92