GPKGFeatureStyle
Objective-C
@interface GPKGFeatureStyle : NSObject
Swift
class GPKGFeatureStyle : NSObject
Feature Style, including a style and icon, for a single feature geometry
-
Style
Declaration
Objective-C
@property (nonatomic, strong) GPKGStyleRow *style;Swift
var style: GPKGStyleRow! { get set } -
Icon
Declaration
Objective-C
@property (nonatomic, strong) GPKGIconRow *icon;Swift
var icon: GPKGIconRow! { get set } -
Initialize
Declaration
Objective-C
- (instancetype)init;Swift
init!()Return Value
new feature style
-
Initialize
Declaration
Objective-C
- (instancetype)initWithStyle:(GPKGStyleRow *)style;Swift
init!(style: GPKGStyleRow!)Parameters
stylestyle row
Return Value
new feature style
-
Initialize
Declaration
Objective-C
- (instancetype)initWithIcon:(GPKGIconRow *)icon;Swift
init!(icon: GPKGIconRow!)Parameters
iconicon row
Return Value
new feature style
-
Initialize
Declaration
Objective-C
- (instancetype)initWithStyle:(GPKGStyleRow *)style andIcon:(GPKGIconRow *)icon;Swift
init!(style: GPKGStyleRow!, andIcon icon: GPKGIconRow!)Parameters
stylestyle row
iconicon row
Return Value
new feature style
-
Check if the feature style has a style row
Declaration
Objective-C
- (BOOL)hasStyle;Swift
func hasStyle() -> BoolReturn Value
true if has style row
-
Check if the feature style has an icon row
Declaration
Objective-C
- (BOOL)hasIcon;Swift
func hasIcon() -> BoolReturn Value
true if has icon row
-
Determine if an icon exists and should be used. Returns false when an icon does not exist or when both a table level icon and row level style exist.
Declaration
Objective-C
- (BOOL)useIcon;Swift
func useIcon() -> BoolReturn Value
true if the icon exists and should be used over a style
View on GitHub
GPKGFeatureStyle Class Reference