public class

CartoCSSStyleSet

extends Object
java.lang.Object
   ↳ com.carto.styles.CartoCSSStyleSet

Class Overview

CartoCSS style definition for vector tiles. Style sets contain optional asset package,
fonts and other resources can be loaded from the asset package.

Summary

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
From class java.lang.Object

Public Constructors

public CartoCSSStyleSet (String cartoCSS)

Constructs a style from CartoCSS string.

Parameters
cartoCSS The CartoCSS string defining point styling.

public CartoCSSStyleSet (String cartoCSS, AssetPackage assetPackage)

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.

Public Methods

public synchronized void delete ()

public boolean equals (Object obj)

Checks if this object is equal to the specified object.

Parameters
obj The reference object.
Returns
  • True when objects are equal, false otherwise.

public AssetPackage getAssetPackage ()

Returns the style asset package.

Returns
  • The style asset package.

public String getCartoCSS ()

Returns the CartoCSS string used for the style.

Returns
  • The CartoCSS string used for the style.

public int hashCode ()

Returns the hash value of this object.

Returns
  • The hash value of this object.