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
style
style row
Return Value
new feature style
-
Initialize
Declaration
Objective-C
- (instancetype)initWithIcon:(GPKGIconRow *)icon;
Swift
init!(icon: GPKGIconRow!)
Parameters
icon
icon 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
style
style row
icon
icon row
Return Value
new feature style
-
Check if the feature style has a style row
Declaration
Objective-C
- (BOOL)hasStyle;
Swift
func hasStyle() -> Bool
Return Value
true if has style row
-
Check if the feature style has an icon row
Declaration
Objective-C
- (BOOL)hasIcon;
Swift
func hasIcon() -> Bool
Return 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() -> Bool
Return Value
true if the icon exists and should be used over a style