GPKGStyles
Objective-C
@interface GPKGStyles : NSObject
Swift
class GPKGStyles : NSObject
Styles for a single feature geometry or feature table default
-
Table styles flag
Declaration
Objective-C
@property (nonatomic) BOOL tableStyles;Swift
var tableStyles: Bool { get set } -
Initialize
Declaration
Objective-C
- (instancetype)init;Swift
init!()Return Value
new styles
-
Initialize
Declaration
Objective-C
- (instancetype)initAsTableStyles:(BOOL)tableStyles;Swift
init!(asTableStyles tableStyles: Bool)Parameters
tableStylestable styles
Return Value
new styles
-
Set the default style
Declaration
Objective-C
- (void)setDefaultStyle:(GPKGStyleRow *)styleRow;Swift
func setDefaultStyle(_ styleRow: GPKGStyleRow!)Parameters
styleRowdefault style
-
Set the style for the geometry type
Declaration
Objective-C
- (void)setStyle:(GPKGStyleRow *)styleRow forGeometryType:(enum SFGeometryType)geometryType;Swift
func setStyle(_ styleRow: GPKGStyleRow!, for geometryType: SFGeometryType)Parameters
styleRowstyle row
geometryTypegeometry type
-
Get the default style
Return Value
default style
-
Get an unmodifiable mapping between specific geometry types and styles
Declaration
Objective-C
- (NSDictionary<NSNumber *, GPKGStyleRow *> *)allStyles;Swift
func allStyles() -> [NSNumber : GPKGStyleRow]!Return Value
geometry types to style mapping
-
Get the style, either the default or single geometry type style
Return Value
style
-
Get the style for the geometry type
Declaration
Objective-C
- (GPKGStyleRow *)styleForGeometryType:(enum SFGeometryType)geometryType;Swift
func style(for geometryType: SFGeometryType) -> GPKGStyleRow!Parameters
geometryTypegeometry type
Return Value
style
-
Determine if this styles is empty
Declaration
Objective-C
- (BOOL)isEmpty;Swift
func isEmpty() -> BoolReturn Value
true if empty, false if at least one style
-
Determine if there is a default style
Declaration
Objective-C
- (BOOL)hasDefault;Swift
func hasDefault() -> BoolReturn Value
true if default style exists
View on GitHub
GPKGStyles Class Reference