GPKGTileRetriever
Objective-C
@protocol GPKGTileRetriever <NSObject>
Swift
protocol GPKGTileRetriever : NSObjectProtocol
Interface defining the get tile retrieval method
-
Check if there is a tile for the x, y, and zoom
Declaration
Objective-C
- (BOOL)hasTileWithX:(NSInteger)x andY:(NSInteger)y andZoom:(NSInteger)zoom;
Swift
func hasTileWith(x: Int, andY y: Int, andZoom zoom: Int) -> Bool
Parameters
x
x coordinate
y
y coordinate
zoom
zoom level
Return Value
true if a tile exists
-
Get a tile from the x, y, and zoom
Declaration
Objective-C
- (GPKGGeoPackageTile *)tileWithX:(NSInteger)x andY:(NSInteger)y andZoom:(NSInteger)zoom;
Swift
func tileWith(x: Int, andY y: Int, andZoom zoom: Int) -> GPKGGeoPackageTile!
Parameters
x
x coordinate
y
y coordinate
zoom
zoom level
Return Value
tile with dimensions and bytes