GPKGTileScaling
Objective-C
@interface GPKGTileScaling : NSObject <NSMutableCopying>
Swift
class GPKGTileScaling : NSObject, NSMutableCopying
Tile Scaling object, for scaling tiles from nearby zoom levels for missing tiles
-
Foreign key to table_name in gpkg_tile_matrix_set
Declaration
Objective-C
@property (nonatomic, strong) NSString *tableName;
Swift
var tableName: String! { get set }
-
Tile Scaling behavior type
Declaration
Objective-C
@property (nonatomic, strong) NSString *scalingType;
Swift
var scalingType: String! { get set }
-
Max zoom levels in to search
Declaration
Objective-C
@property (nonatomic, strong) NSNumber *zoomIn;
Swift
var zoomIn: NSNumber! { get set }
-
Max zoom levels out to search
Declaration
Objective-C
@property (nonatomic, strong) NSNumber *zoomOut;
Swift
var zoomOut: NSNumber! { get set }
-
Initialize
Declaration
Objective-C
- (instancetype)init;
Swift
init!()
Return Value
new tile scaling
-
Initialize
Declaration
Objective-C
- (instancetype)initWithTileMatrixSet:(GPKGTileMatrixSet *)tileMatrixSet andScalingType:(enum GPKGTileScalingType)scalingType andZoomIn:(NSNumber *)zoomIn andZoomOut:(NSNumber *)zoomOut;
Swift
init!(tileMatrixSet: GPKGTileMatrixSet!, andScalingType scalingType: GPKGTileScalingType, andZoomIn zoomIn: NSNumber!, andZoomOut zoomOut: NSNumber!)
Parameters
tileMatrixSet
tile matrix set
scalingType
scaling type
zoomIn
max zoom in levels
zoomOut
max zoom out levels
Return Value
new tile scaling
-
Initialize
Declaration
Objective-C
- (instancetype)initWithTableName:(NSString *)tableName andScalingType:(enum GPKGTileScalingType)scalingType andZoomIn:(NSNumber *)zoomIn andZoomOut:(NSNumber *)zoomOut;
Swift
init!(tableName: String!, andScalingType scalingType: GPKGTileScalingType, andZoomIn zoomIn: NSNumber!, andZoomOut zoomOut: NSNumber!)
Parameters
tableName
table name
scalingType
scaling type
zoomIn
max zoom in levels
zoomOut
max zoom out levels
Return Value
new tile scaling
-
Initialize
Declaration
Objective-C
- (instancetype)initWithScalingType:(enum GPKGTileScalingType)scalingType andZoomIn:(NSNumber *)zoomIn andZoomOut:(NSNumber *)zoomOut;
Swift
init!(scalingType: GPKGTileScalingType, andZoomIn zoomIn: NSNumber!, andZoomOut zoomOut: NSNumber!)
Parameters
scalingType
scaling type
zoomIn
max zoom in levels
zoomOut
max zoom out levels
Return Value
new tile scaling
-
Set the tile matrix set
Declaration
Objective-C
- (void)setTileMatrixSet:(GPKGTileMatrixSet *)tileMatrixSet;
Swift
func setTileMatrixSet(_ tileMatrixSet: GPKGTileMatrixSet!)
Parameters
tileMatrixSet
tile matrix set
-
Get the tile scaling type
Declaration
Objective-C
- (enum GPKGTileScalingType)tileScalingType;
Swift
func tileScalingType() -> GPKGTileScalingType
Return Value
tile scaling type
-
Set the tile scaling type
Declaration
Objective-C
- (void)setTileScalingType:(enum GPKGTileScalingType)scalingType;
Swift
func setTileScalingType(_ scalingType: GPKGTileScalingType)
Parameters
scalingType
tile scaling type
-
Is zoom in tile search enabled
Declaration
Objective-C
- (BOOL)isZoomIn;
Swift
func isZoomIn() -> Bool
Return Value
true if zoom in for tiles is allowed
-
Is zoom out tile search enabled
Declaration
Objective-C
- (BOOL)isZoomOut;
Swift
func isZoomOut() -> Bool
Return Value
true if zoom out for tiles is allowed