MSFCompiledStyleSet
Objective-C
@interface MSFCompiledStyleSet : NSObject {
void *swigCPtr;
BOOL swigCMemOwn;
}
Swift
class MSFCompiledStyleSet : NSObject
Compiled style set definition for vector tiles. Compiled style sets should contains either Mapnik XML stylesheets with all required assets or CartoCSS JSON-based project files.
-
Checks if this object is equal to the specified object.
Declaration
Objective-C
- (BOOL)isEqual:(id)object;Swift
func isEqual(_ object: Any!) -> BoolParameters
objectThe reference object.
Return Value
True when objects are equal, false otherwise.
-
Returns the hash value of this object.
Declaration
Objective-C
- (NSUInteger)hash;Swift
func hash() -> UIntReturn Value
The hash value of this object.
-
Constructs a style set from the given asset package. If the asset package contains multiple styles (XML or JSON files), the first one (based on lexicographical order) from the root folder is chosen as the current style.
Declaration
Objective-C
- (id)initWithAssetPackage:(MSFAssetPackage *)assetPackage;Swift
init!(assetPackage: MSFAssetPackage!)Parameters
assetPackageThe asset package containing compiled style set data and style definition.
-
Constructs a style from the given asset package and explicit style name.
Declaration
Objective-C
- (id)initWithAssetPackage:(MSFAssetPackage *)assetPackage styleName:(NSString *)styleName;Swift
init!(assetPackage: MSFAssetPackage!, styleName: String!)Parameters
assetPackageThe asset package containing compiled style set data and style definition.
styleNameThe name of the style to use.
-
Returns the current style name.
Declaration
Objective-C
- (NSString *)getStyleName;Swift
func getStyleName() -> String!Return Value
The current style name.
-
Returns the asset name defining the current style name.
Declaration
Objective-C
- (NSString *)getStyleAssetName;Swift
func getStyleAssetName() -> String!Return Value
The asset name defining the current style name.
-
Returns the style asset package.
Declaration
Objective-C
- (MSFAssetPackage *)getAssetPackage;Swift
func getAssetPackage() -> MSFAssetPackage!Return Value
The style asset package.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()