高德地图SDK(导航) V10.0.900
Loading...
Searching...
No Matches
MATileOverlay.h
Go to the documentation of this file.
1//
2// MATileOverlay.h
3// MapKit_static
4//
5// Created by Li Fei on 11/22/13.
6// Copyright © 2016 Amap. All rights reserved.
7//
8
9#import "MAConfig.h"
10#if MA_INCLUDE_OVERLAY_TILE
11
12#import "MAOverlay.h"
13#import "MABaseOverlay.h"
14
16@interface MATileOverlay : MABaseOverlay
17
19@property (nonatomic, assign) CGSize tileSize;
20
22@property NSInteger minimumZ __attribute((deprecated("已废弃, 调用不起任何作用。since 9.6.0")));
23
25@property NSInteger maximumZ __attribute((deprecated("已废弃, 调用不起任何作用。since 9.6.0")));
26
28@property (readonly) NSString *URLTemplate;
29
31@property (nonatomic) BOOL canReplaceMapContent;
32
34@property (nonatomic, assign) BOOL disableOffScreenTileLoading;
35
41- (id)initWithURLTemplate:(NSString *)URLTemplate;
42
43@end
44
46struct MATileOverlayPath{
47 NSInteger x;
48 NSInteger y;
49 NSInteger z;
50 CGFloat contentScaleFactor;
51 NSInteger index;
52 NSInteger requestId;
53};
54typedef struct MATileOverlayPath MATileOverlayPath;
55
57@interface MATileOverlay (CustomLoading)
58
64- (NSURL *)URLForTilePath:(MATileOverlayPath)path;
65
71- (void)loadTileAtPath:(MATileOverlayPath)path result:(void (^)(NSData *tileData, NSError *error))result;
72
77- (void)cancelLoadOfTileAtPath:(MATileOverlayPath)path;
78
79@end
80
81#endif
Definition MABaseOverlay.h:14
© 2017 高德信息技术有限公司 版权所有,保留所有权利。