TencentMapSDK_iOS_3D_v6.7.0

QTileOverlay.h
1 //
2 // QTileOverlay.h
3 // QMapKit
4 //
5 // Created by tabsong on 2017/6/27.
6 // Copyright © 2017年 tencent. All rights reserved.
7 //
8
9 #import <Foundation/Foundation.h>
10 #import "QTypes.h"
11 #import "QGeometry.h"
12 #import "QOverlay.h"
13
17 @interface QTileOverlay : NSObject <QOverlay>
18 {
19 @package
20 QMapRect _boundingRect; //当前仅返回全球范围外接矩形
21 }
22
31 - (instancetype)initWithURLTemplate: (NSString *)URLTemplate;
32
36 @property (readonly) NSString *URLTemplate;
37
41 @property (nonatomic, assign) BOOL isHighResoultionTile;
42
46 @property (nonatomic, strong) NSString *tileCacheDir;
47
51 @property (nonatomic) BOOL enableReuseOnMultiLevel;
52
56 @property (nonatomic, assign) NSInteger levelOffset;
57
61 @property (nonatomic, readonly) int minDataLevel;
62
66 @property (nonatomic, readonly) int maxDataLevel;
67
74 - (void)setMinDataLevel:(int)minLevel maxDataLevel:(int)maxLevel;
75
79 @property (nonatomic, readonly) int minVisibleLevel;
80
84 @property (nonatomic, readonly) int maxVisibleLevel;
85
86
92 - (void)setMinVisibleLevel:(int)minLevel maxVisibleLevel:(int)maxLevel;
93
94 @end
95
99 @interface QTileOverlay (CustomLoading)
100
108 - (NSURL *)URLForTilePath:(QTileOverlayPath)path;
109
117 - (void)loadTileAtPath:(QTileOverlayPath)path result:(void (^)(NSData *tileData, NSError *error))result;
118
125 - (void)cancelLoadOfTileAtPath:(QTileOverlayPath)tilePath;
126
127 @end
QTileOverlay::maxVisibleLevel
int maxVisibleLevel
展示最大级别. 默认18.
Definition: QTileOverlay.h:85
QTileOverlay::maxDataLevel
int maxDataLevel
支持的数据最大级别. 默认 18
Definition: QTileOverlay.h:67
QTileOverlay::minDataLevel
int minDataLevel
支持的数据最小级别. 默认 3
Definition: QTileOverlay.h:62
QTileOverlay::levelOffset
NSInteger levelOffset
tileOverlay级数偏移. 范围：[-1,1]
Definition: QTileOverlay.h:57
QTileOverlay::isHighResoultionTile
BOOL isHighResoultionTile
resolution=512x512 or 256x256
Definition: QTileOverlay.h:42
QTileOverlay(CustomLoading)
QTileOverlay的扩展类，用于提供数据加载方法
Definition: QTileOverlay.h:100
QOverlay-p
QOverlay:地图覆盖物的基类，所有地图的覆盖物需要继承自此类
Definition: QOverlay.h:15
QTileOverlay::URLTemplate
NSString * URLTemplate
tile的URL格式
Definition: QTileOverlay.h:37
QTileOverlay::enableReuseOnMultiLevel
BOOL enableReuseOnMultiLevel
是否开启多级复用，默认为NO，若当前层级瓦片不存在，则复用临近级别的瓦片数据.
Definition: QTileOverlay.h:52
QTileOverlay
用于自定义瓦片数据的类
Definition: QTileOverlay.h:19
QTileOverlay::minVisibleLevel
int minVisibleLevel
展示最小级别. 默认3 .
Definition: QTileOverlay.h:80
QTileOverlay::tileCacheDir
NSString * tileCacheDir
自定义瓦片的自定义存储目录，如不设置则不使用缓存
Definition: QTileOverlay.h:47
QTileOverlayPath
代表单个瓦片的索引
Definition: QTypes.h:63