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

    tileWidth

    tile width to draw

    tileHeight

    tile height to draw

    tileFeatureCount

    count of features in the requested tile

    featureIndexResults

    results 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

    tileWidth

    tile width to draw

    tileHeight

    tile height to draw

    totalFeatureCount

    count of total features in the feature table

    featureDao

    feature data access object

    results

    feature row results

    Return Value

    image