MSFCartoCSSStyleSet
Objective-C
@interface MSFCartoCSSStyleSet : NSObject {
void *swigCPtr;
BOOL swigCMemOwn;
}
Swift
class MSFCartoCSSStyleSet : NSObject
CartoCSS style definition for vector tiles. Style sets contain optional asset package, fonts and other resources can be loaded from the asset package.
-
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 from CartoCSS string.
Declaration
Objective-C
- (id)initWithCartoCSS:(NSString *)cartoCSS;Swift
init!(cartoCSS: String!)Parameters
cartoCSSThe CartoCSS string defining point styling.
-
Constructs a style from CartoCSS string and asset data.
Declaration
Objective-C
- (id)initWithCartoCSS:(NSString *)cartoCSS assetPackage:(MSFAssetPackage *)assetPackage;Swift
init!(cartoCSS: String!, assetPackage: MSFAssetPackage!)Parameters
cartoCSSThe CartoCSS string defining point styling.
assetPackageThe optional asset package for the style. Can be null if CartoCSS does not use any local assets.
-
Returns the CartoCSS string used for the style.
Declaration
Objective-C
- (NSString *)getCartoCSS;Swift
func getCartoCSS() -> String!Return Value
The CartoCSS string used for the style.
-
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()