java.lang.Object | |
↳ | com.carto.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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CompiledStyleSet(AssetPackage assetPackage)
Constructs a style set from the given asset package.
| |||||||||||
CompiledStyleSet(AssetPackage assetPackage, String styleName)
Constructs a style from the given asset package and explicit style name.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
synchronized void | delete() | ||||||||||
boolean |
equals(Object obj)
Checks if this object is equal to the specified object.
| ||||||||||
AssetPackage |
getAssetPackage()
Returns the style asset package.
| ||||||||||
String |
getStyleAssetName()
Returns the asset name defining the current style name.
| ||||||||||
String |
getStyleName()
Returns the current style name.
| ||||||||||
int |
hashCode()
Returns the hash value of this object.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
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.
assetPackage | The asset package containing compiled style set data and style definition. |
---|
Constructs a style from the given asset package and explicit style name.
assetPackage | The asset package containing compiled style set data and style definition. |
---|---|
styleName | The name of the style to use. |
Checks if this object is equal to the specified object.
obj | The reference object. |
---|
Returns the style asset package.
Returns the asset name defining the current style name.
Returns the current style name.
Returns the hash value of this object.