TencentMapSDK_iOS_3D_v6.7.0

QTypes.h
1 //
2 // QTypes.h
3 // QMapKit
4 //
5 // Created by fan on 2017/6/24.
6 // Copyright © 2017年 tencent. All rights reserved.
7 //
8
9 #import <Foundation/Foundation.h>
10
11 #ifndef QTypes_h
12 #define QTypes_h
13
14 // 地图鉴权错误
15 FOUNDATION_EXPORT NSErrorDomain const QMapAuthenticationErrorDomain;
16
17 // 地图鉴权错误码.
18 NS_ERROR_ENUM(QMapAuthenticationErrorDomain)
19 {
20 // 鉴权内部错误.
21 QMapAuthenticationErrorInternal = 1001,
22 };
23
27 typedef NS_ENUM(NSUInteger, QMapType) {
28 QMapTypeStandard = 0,
29 QMapTypeSatellite,
30 QMapTypeDark,
31 QMapType3DImmersiveMap
32 };
33
34
35 typedef NS_ENUM (int, QMapStyleType) {
36 QMapStyle_Normal = 0, // normal
37 QMapStyle_Navigation = 1, // navigation
38 QMapStyle_NavigationNight = 2 // dark
39 } DEPRECATED_ATTRIBUTE;
40
44 typedef NS_ENUM(NSUInteger, QMapLanguage) {
45 QMapLanguage_zh = 0,
46 QMapLanguage_en
47 };
48
52 typedef NS_ENUM(NSInteger, QMapLabelSize) {
53 QMapLabelSize_Tiny = 0,
54 QMapLabelSize_Small,
55 QMapLabelSize_Normal,
56 QMapLabelSize_Large,
57 QMapLabelSize_Huge
58 };
59
63 typedef struct {
64 NSInteger x;
65 NSInteger y;
66 NSInteger z;
67 NSInteger language; // language. 1:en, 0:zh
68 double contentScaleFactor;
69 } QTileOverlayPath;
70
74 typedef NS_ENUM(NSInteger, QOverlayLevel) {
75 QOverlayLevelAboveRoads = 0, // 在道路之上楼块之下
76 QOverlayLevelAboveBuildings, // 在楼块之上POI之下
77 QOverlayLevelAboveLabels // 显示在所有POI之上
78 };
79
83 typedef NS_ENUM(NSInteger,QMapLimitRectFitMode) {
84 QMapLimitRectFitWidth = 0, // 此模式会以 mapRect宽度为参考值限制地图的控制区域，保证横向区域完全展示
85 QMapLimitRectFitHeight // 此模式会以 mapRect高度为参考值限制地图的控制区域，保证纵向区域完全展示
86 };
87
88
92 typedef NS_ENUM(NSUInteger, QOverlayStrokeType) {
93 QOverlayStrokeType_Default,
94 QOverlayStrokeType_Dash,
95 QOverlayStrokeType_Dot,
96 };
97
101 typedef NS_ENUM(NSUInteger, QGestureType) {
102 QGestureType_Move = 1,
103 QGestureType_ZoomIn,
104 QGestureType_ZoomOut,
105 QGestureType_Pinch,
106 QGestureType_SingleFingerZoom,
107 QGestureType_Rotate,
108 QGestureType_Pitch,
109 QGestureType_SingleTap,
110 QGestureType_Butt
111 };
112
113
114
115 #endif /* QTypes_h */
QTileOverlayPath::x
NSInteger x
瓦片的x下标
Definition: QTypes.h:64
QTileOverlayPath::z
NSInteger z
瓦片所在缩放级别
Definition: QTypes.h:66
QTileOverlayPath::contentScaleFactor
double contentScaleFactor
暂不支持
Definition: QTypes.h:68
QTileOverlayPath::y
NSInteger y
瓦片的y下标
Definition: QTypes.h:65
QTileOverlayPath
代表单个瓦片的索引
Definition: QTypes.h:63