GPKGStyleCache
Objective-C
@interface GPKGStyleCache : NSObject
Swift
class GPKGStyleCache : NSObject
Style utilities for populating points and shapes. Caches icons for a single GeoPackage
-
Initialize
Declaration
Objective-C
- (instancetype)initWithGeoPackage:(GPKGGeoPackage *)geoPackage;
Swift
init!(geoPackage: GPKGGeoPackage!)
Parameters
geoPackage
GeoPackage
-
Initialize
Declaration
Objective-C
- (instancetype)initWithGeoPackage:(GPKGGeoPackage *)geoPackage andIconCacheSize:(int)iconCacheSize;
Swift
init!(geoPackage: GPKGGeoPackage!, andIconCacheSize iconCacheSize: Int32)
Parameters
geoPackage
GeoPackage
iconCacheSize
number of icon images to cache
-
Initialize
Declaration
Objective-C
- (instancetype)initWithExtension: (GPKGFeatureStyleExtension *)featureStyleExtension;
Swift
init!(with featureStyleExtension: GPKGFeatureStyleExtension!)
Parameters
featureStyleExtension
feature style extension
-
Initialize
Declaration
Objective-C
- (instancetype)initWithExtension: (GPKGFeatureStyleExtension *)featureStyleExtension andIconCacheSize:(int)iconCacheSize;
Swift
init!(with featureStyleExtension: GPKGFeatureStyleExtension!, andIconCacheSize iconCacheSize: Int32)
Parameters
featureStyleExtension
feature style extension
iconCacheSize
number of icon bitmaps to cache
-
Clear the cache
Declaration
Objective-C
- (void)clear;
Swift
func clear()
-
Get the feature style extension
Declaration
Objective-C
- (GPKGFeatureStyleExtension *)featureStyleExtension;
Swift
func featureStyleExtension() -> GPKGFeatureStyleExtension!
Return Value
feature style extension
-
Set the feature row style (icon or style) into the map point
Declaration
Objective-C
- (BOOL)setFeatureStyleWithMapPoint:(GPKGMapPoint *)mapPoint andFeature:(GPKGFeatureRow *)featureRow;
Swift
func setFeatureStyleWith(_ mapPoint: GPKGMapPoint!, andFeature featureRow: GPKGFeatureRow!) -> Bool
Parameters
mapPoint
map point
featureRow
feature row
Return Value
true if icon or style was set into the map point
-
Set the feature style (icon or style) into the marker options
Declaration
Objective-C
- (BOOL)setFeatureStyleWithMapPoint:(GPKGMapPoint *)mapPoint andFeatureStyle:(GPKGFeatureStyle *)featureStyle;
Swift
func setFeatureStyleWith(_ mapPoint: GPKGMapPoint!, andFeatureStyle featureStyle: GPKGFeatureStyle!) -> Bool
Parameters
mapPoint
map point
featureStyle
feature style
Return Value
true if icon or style was set into the marker options
-
Set the icon into the marker options
Declaration
Objective-C
- (BOOL)setIconWithMapPoint:(GPKGMapPoint *)mapPoint andIcon:(GPKGIconRow *)icon;
Swift
func setIconWith(_ mapPoint: GPKGMapPoint!, andIcon icon: GPKGIconRow!) -> Bool
Parameters
mapPoint
map point
icon
icon row
Return Value
true if icon was set into the marker options
-
Create the icon bitmap
Declaration
Objective-C
- (id)createIconImageWithIcon:(GPKGIconRow *)icon;
Swift
func createIconImage(withIcon icon: GPKGIconRow!) -> Any!
Parameters
icon
icon row
Return Value
icon bitmap
-
Set the style into the marker options
Declaration
Objective-C
- (BOOL)setStyleWithMapPoint:(GPKGMapPoint *)mapPoint andStyle:(GPKGStyleRow *)style;
Swift
func setStyleWith(_ mapPoint: GPKGMapPoint!, andStyle style: GPKGStyleRow!) -> Bool
Parameters
mapPoint
map point
style
style row
Return Value
true if style was set into the marker options
-
Set the feature row style into the polyline
Declaration
Objective-C
- (BOOL)setFeatureStyleWithPolyline:(GPKGPolyline *)polyline andFeature:(GPKGFeatureRow *)featureRow;
Swift
func setFeatureStyleWith(_ polyline: GPKGPolyline!, andFeature featureRow: GPKGFeatureRow!) -> Bool
Parameters
polyline
polyline
featureRow
feature row
Return Value
true if style was set into the polyline
-
Set the feature style into the polyline
Declaration
Objective-C
- (BOOL)setFeatureStyleWithPolyline:(GPKGPolyline *)polyline andFeatureStyle:(GPKGFeatureStyle *)featureStyle;
Swift
func setFeatureStyleWith(_ polyline: GPKGPolyline!, andFeatureStyle featureStyle: GPKGFeatureStyle!) -> Bool
Parameters
polyline
polyline
featureStyle
feature style
Return Value
true if style was set into the polyline
-
Set the style into the polyline
Declaration
Objective-C
- (BOOL)setStyleWithPolyline:(GPKGPolyline *)polyline andStyle:(GPKGStyleRow *)style;
Swift
func setStyleWith(_ polyline: GPKGPolyline!, andStyle style: GPKGStyleRow!) -> Bool
Parameters
polyline
polyline
style
style row
Return Value
true if style was set into the polyline
-
Set the feature row style into the polygon
Declaration
Objective-C
- (BOOL)setFeatureStyleWithPolygon:(GPKGPolygon *)polygon andFeature:(GPKGFeatureRow *)featureRow;
Swift
func setFeatureStyleWith(_ polygon: GPKGPolygon!, andFeature featureRow: GPKGFeatureRow!) -> Bool
Parameters
polygon
polygon
featureRow
feature row
Return Value
true if style was set into the polygon
-
Set the feature style into the polygon
Declaration
Objective-C
- (BOOL)setFeatureStyleWithPolygon:(GPKGPolygon *)polygon andFeatureStyle:(GPKGFeatureStyle *)featureStyle;
Swift
func setFeatureStyleWith(_ polygon: GPKGPolygon!, andFeatureStyle featureStyle: GPKGFeatureStyle!) -> Bool
Parameters
polygon
polygon
featureStyle
feature style
Return Value
true if style was set into the polygon
-
Set the style into the polygon
Declaration
Objective-C
- (BOOL)setStyleWithPolygon:(GPKGPolygon *)polygon andStyle:(GPKGStyleRow *)style;
Swift
func setStyleWith(_ polygon: GPKGPolygon!, andStyle style: GPKGStyleRow!) -> Bool
Parameters
polygon
polygon
style
style row
Return Value
true if style was set into the polygon