Package com.massifmaps.styles
Class CartoCSSStyleSet
java.lang.Object
com.massifmaps.styles.CartoCSSStyleSet
CartoCSS style definition for vector tiles. Style sets contain optional asset package,
fonts and other resources can be loaded from the asset package.
fonts and other resources can be loaded from the asset package.
-
Constructor Summary
ConstructorsConstructorDescriptionCartoCSSStyleSet(String cartoCSS) Constructs a style from CartoCSS string.CartoCSSStyleSet(String cartoCSS, AssetPackage assetPackage) Constructs a style from CartoCSS string and asset data. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if this object is equal to the specified object.Returns the style asset package.Returns the CartoCSS string used for the style.inthashCode()Returns the hash value of this object.
-
Constructor Details
-
CartoCSSStyleSet
Constructs a style from CartoCSS string.- Parameters:
cartoCSS- The CartoCSS string defining point styling.
-
CartoCSSStyleSet
Constructs a style from CartoCSS string and asset data.- Parameters:
cartoCSS- The CartoCSS string defining point styling.assetPackage- The optional asset package for the style. Can be null if CartoCSS does not use any local assets.
-
-
Method Details
-
equals
Checks if this object is equal to the specified object. -
hashCode
public int hashCode()Returns the hash value of this object. -
getCartoCSS
Returns the CartoCSS string used for the style.- Returns:
- The CartoCSS string used for the style.
-
getAssetPackage
Returns the style asset package.- Returns:
- The style asset package.
-