java.lang.Object | |
↳ | com.carto.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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CartoCSSStyleSet(String cartoCSS)
Constructs a style from CartoCSS string.
| |||||||||||
CartoCSSStyleSet(String cartoCSS, AssetPackage assetPackage)
Constructs a style from CartoCSS string and asset data.
|
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 |
getCartoCSS()
Returns the CartoCSS string used for the style.
| ||||||||||
int |
hashCode()
Returns the hash value of this object.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Constructs a style from CartoCSS string.
cartoCSS | The CartoCSS string defining point styling. |
---|
Constructs a style from CartoCSS string and asset data.
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. |
Checks if this object is equal to the specified object.
obj | The reference object. |
---|
Returns the style asset package.
Returns the CartoCSS string used for the style.
Returns the hash value of this object.