GPKGCustomFeaturesTile
Objective-C
@protocol GPKGCustomFeaturesTile <NSObject>
Swift
protocol GPKGCustomFeaturesTile : NSObjectProtocol
Interface defining custom feature tile drawing. The tile drawn will be used instead of drawing all of the features.
-
Draw a custom tile
Declaration
Objective-C
- (id)drawTileWithTileWidth:(int)tileWidth andTileHeight:(int)tileHeight andTileFeatureCount:(int)tileFeatureCount andFeatureIndexResults:(GPKGFeatureIndexResults *)featureIndexResults;Swift
func drawTile(withTileWidth tileWidth: Int32, andTileHeight tileHeight: Int32, andTileFeatureCount tileFeatureCount: Int32, andFeatureIndexResults featureIndexResults: GPKGFeatureIndexResults!) -> Any!Parameters
tileWidthtile width to draw
tileHeighttile height to draw
tileFeatureCountcount of features in the requested tile
featureIndexResultsresults as feature index results
Return Value
image
-
Draw a custom tile when the number of features within the tile is unknown. This is called when a feature table is not indexed and more total features exist than the max per tile.
Declaration
Objective-C
- (id)drawUnindexedTileWithTileWidth:(int)tileWidth andTileHeight:(int)tileHeight andTotalFeatureCount:(int)totalFeatureCount andFeatureDao:(GPKGFeatureDao *)featureDao andResults:(GPKGResultSet *)results;Swift
func drawUnindexedTile(withTileWidth tileWidth: Int32, andTileHeight tileHeight: Int32, andTotalFeatureCount totalFeatureCount: Int32, andFeatureDao featureDao: GPKGFeatureDao!, andResults results: GPKGResultSet!) -> Any!Parameters
tileWidthtile width to draw
tileHeighttile height to draw
totalFeatureCountcount of total features in the feature table
featureDaofeature data access object
resultsfeature row results
Return Value
image
View on GitHub
GPKGCustomFeaturesTile Protocol Reference