TencentMapSDK_iOS_3D_v6.8.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
用于自定义瓦片数据的类
定义 QTileOverlay.h:19
QTileOverlay::enableReuseOnMultiLevel
BOOL enableReuseOnMultiLevel
是否开启多级复用，默认为NO，若当前层级瓦片不存在，则复用临近级别的瓦片数据.
定义 QTileOverlay.h:52
QTileOverlay::isHighResoultionTile
BOOL isHighResoultionTile
resolution=512x512 or 256x256
定义 QTileOverlay.h:42
QTileOverlay::minVisibleLevel
int minVisibleLevel
展示最小级别. 默认3 .
定义 QTileOverlay.h:80
QTileOverlay::maxDataLevel
int maxDataLevel
支持的数据最大级别. 默认 18
定义 QTileOverlay.h:67
QTileOverlay::URLTemplate
NSString * URLTemplate
tile的URL格式
定义 QTileOverlay.h:37
QTileOverlay::tileCacheDir
NSString * tileCacheDir
自定义瓦片的自定义存储目录，如不设置则不使用缓存
定义 QTileOverlay.h:47
QTileOverlay::levelOffset
NSInteger levelOffset
tileOverlay级数偏移. 范围：[-1,1]
定义 QTileOverlay.h:57
QTileOverlay::maxVisibleLevel
int maxVisibleLevel
展示最大级别. 默认18.
定义 QTileOverlay.h:85
QTileOverlay::minDataLevel
int minDataLevel
支持的数据最小级别. 默认 3
定义 QTileOverlay.h:62
QOverlay-p
QOverlay:地图覆盖物的基类，所有地图的覆盖物需要继承自此类
定义 QOverlay.h:15
QTileOverlayPath
代表单个瓦片的索引
定义 QTypes.h:63