MaplyPagingVectorTestTileSource
@interface MaplyPagingVectorTestTileSource : NSObject <MaplyPagingDelegate>
A data source used for testing paging layer.
This data source puts up a colored and numbered rectangle for each tile loaded. It’s useful for debugging paging schemes.
-
Initialize with the coordinate system, min and max zoom levels, and the number of images to return
Declaration
Objective-C
- (nonnull instancetype)initWithCoordSys: (MaplyCoordinateSystem *_Nonnull)coordSys minZoom:(int)minZoom maxZoom:(int)maxZoom;
Swift
init(coordSys: MaplyCoordinateSystem, minZoom: Int32, maxZoom: Int32)
-
Coordinate system we’re pretending to be in
Declaration
Objective-C
@property (readonly, nonatomic, nonnull) MaplyCoordinateSystem *coordSys;
Swift
var coordSys: MaplyCoordinateSystem { get }
-
Minimum zoom level supported
Declaration
Objective-C
@property (assign, readwrite, nonatomic) int minZoom;
Swift
var minZoom: Int32 { get set }
-
Max zoom level supported
Declaration
Objective-C
@property (assign, readwrite, nonatomic) int maxZoom;
Swift
var maxZoom: Int32 { get set }
-
If set, we’ll add a little delay to test things out
Declaration
Objective-C
@property (assign, readwrite, nonatomic) _Bool useDelay;
Swift
var useDelay: Bool { get set }