GPKGNumberFeaturesTile

Objective-C

@interface GPKGNumberFeaturesTile : NSObject <GPKGCustomFeaturesTile>

Swift

class GPKGNumberFeaturesTile : NSObject, GPKGCustomFeaturesTile

Draws a tile indicating the number of features that exist within the tile, visible when zoomed in closer. The number is drawn in the center of the tile and by default is surrounded by a colored circle with border. By default a tile border is drawn and the tile is colored (transparently most likely). The paint objects for each draw type can be modified to or set to null (except for the text paint object).

  • Text font used for the drawn number

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *textFont;

    Swift

    var textFont: String! { get set }
  • Text font size used for the drawn number

    Declaration

    Objective-C

    @property (nonatomic) double textFontSize;

    Swift

    var textFontSize: Double { get set }
  • Text color

    Declaration

    Objective-C

    @property (nonatomic) int *textColor;

    Swift

    var textColor: CIColor! { get set }
  • When true, circle is drawn

    Declaration

    Objective-C

    @property (nonatomic) BOOL drawCircle;

    Swift

    var drawCircle: Bool { get set }
  • Circle stroke width

    Declaration

    Objective-C

    @property (nonatomic) double circleStrokeWidth;

    Swift

    var circleStrokeWidth: Double { get set }
  • Circle color

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor * circleColor

    Swift

    var circleColor: CIColor! { get set }
  • When true, circle is filled with color

    Declaration

    Objective-C

    @property (nonatomic) BOOL fillCircle;

    Swift

    var fillCircle: Bool { get set }
  • Circle fill color

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor * circleFillColor

    Swift

    var circleFillColor: CIColor! { get set }
  • When true, tile border is drawn

    Declaration

    Objective-C

    @property (nonatomic) BOOL drawTileBorder;

    Swift

    var drawTileBorder: Bool { get set }
  • Tile Border stroke width

    Declaration

    Objective-C

    @property (nonatomic) double tileBorderStrokeWidth;

    Swift

    var tileBorderStrokeWidth: Double { get set }
  • Tile Border color

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor * tileBorderColor

    Swift

    var tileBorderColor: CIColor! { get set }
  • When true, tile is filled with color

    Declaration

    Objective-C

    @property (nonatomic) BOOL fillTile;

    Swift

    var fillTile: Bool { get set }
  • Tile fill color

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor * tileFillColor

    Swift

    var tileFillColor: CIColor! { get set }
  • The percentage of border to include around the edges of the text in the circle

    Declaration

    Objective-C

    @property (nonatomic) float circlePaddingPercentage;

    Swift

    var circlePaddingPercentage: Float { get set }
  • Flag indicating whether tiles should be drawn for feature tables that are not indexed

    Declaration

    Objective-C

    @property (nonatomic) BOOL drawUnindexedTiles;

    Swift

    var drawUnindexedTiles: Bool { get set }
  • Text used when drawing tiles for feature tables that are not indexed

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *unindexedText;

    Swift

    var unindexedText: String! { get set }
  • Initialize

    Declaration

    Objective-C

    - (instancetype)init;

    Swift

    init!()

    Return Value

    new number feature tile