GPKGIcons
Objective-C
@interface GPKGIcons : NSObject
Swift
class GPKGIcons : NSObject
Icons for a single feature geometry or feature table default
-
Table icons flag
Declaration
Objective-C
@property (nonatomic) BOOL tableIcons;
Swift
var tableIcons: Bool { get set }
-
Initialize
Declaration
Objective-C
- (instancetype)init;
Swift
init!()
Return Value
new icons
-
Initialize
Declaration
Objective-C
- (instancetype)initAsTableIcons:(BOOL)tableIcons;
Swift
init!(asTableIcons tableIcons: Bool)
Parameters
tableIcons
table icons
Return Value
new icons
-
Set the default icon
Declaration
Objective-C
- (void)setDefaultIcon:(GPKGIconRow *)iconRow;
Swift
func setDefaultIcon(_ iconRow: GPKGIconRow!)
Parameters
iconRow
default icon
-
Set the icon for the geometry type
Declaration
Objective-C
- (void)setIcon:(GPKGIconRow *)iconRow forGeometryType:(enum SFGeometryType)geometryType;
Swift
func setIcon(_ iconRow: GPKGIconRow!, for geometryType: SFGeometryType)
Parameters
iconRow
icon row
geometryType
geometry type
-
Get the default icon
Return Value
default icon
-
Get an unmodifiable mapping between specific geometry types and icons
Declaration
Objective-C
- (NSDictionary<NSNumber *, GPKGIconRow *> *)allIcons;
Swift
func allIcons() -> [NSNumber : GPKGIconRow]!
Return Value
geometry types to icon mapping
-
Get the icon, either the default or single geometry type icon
Return Value
icon
-
Get the icon for the geometry type
Declaration
Objective-C
- (GPKGIconRow *)iconForGeometryType:(enum SFGeometryType)geometryType;
Swift
func icon(for geometryType: SFGeometryType) -> GPKGIconRow!
Parameters
geometryType
geometry type
Return Value
icon
-
Determine if this icons is empty
Declaration
Objective-C
- (BOOL)isEmpty;
Swift
func isEmpty() -> Bool
Return Value
true if empty, false if at least one icon
-
Determine if there is a default icon
Declaration
Objective-C
- (BOOL)hasDefault;
Swift
func hasDefault() -> Bool
Return Value
true if default icon exists