Package com.massifmaps.styles
Class CompiledStyleSet
java.lang.Object
com.massifmaps.styles.CompiledStyleSet
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.
with all required assets or CartoCSS JSON-based project files.
-
Constructor Summary
ConstructorsConstructorDescriptionCompiledStyleSet(AssetPackage assetPackage) 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.CompiledStyleSet(AssetPackage assetPackage, String styleName) Constructs a style from the given asset package and explicit style name. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if this object is equal to the specified object.Returns the style asset package.Returns the asset name defining the current style name.Returns the current style name.inthashCode()Returns the hash value of this object.
-
Constructor Details
-
CompiledStyleSet
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.- Parameters:
assetPackage- The asset package containing compiled style set data and style definition.
-
CompiledStyleSet
Constructs a style from the given asset package and explicit style name.- Parameters:
assetPackage- The asset package containing compiled style set data and style definition.styleName- The name of the style to use.
-
-
Method Details
-
equals
Checks if this object is equal to the specified object. -
hashCode
public int hashCode()Returns the hash value of this object. -
getStyleName
Returns the current style name.- Returns:
- The current style name.
-
getStyleAssetName
Returns the asset name defining the current style name.- Returns:
- The CartoCSS string used for the style.
-
getAssetPackage
Returns the style asset package.- Returns:
- The style asset package.
-