Skip to main content

Style sets

CartoCSS, inline or as a compiled style project. Created with kind styleset.

TypeClass
"cartocss"CartoCSSStyleSet
"project"CompiledStyleSet

"cartocss" — CartoCSSStyleSet

{"type": "cartocss", "css":, "assets":}
{"type": "cartocss", "css":}
KeyTypeAlways requiredNotes
cssstringyes
assetsobject std::shared_ptr<AssetPackage>noan id of kind assets, or an inline spec
PropertyTypeAccessDescription
assetPackageobject std::shared_ptr<massif::AssetPackage>read-onlyReturns the style asset package.
cartoCSSstringread-onlyReturns the CartoCSS string used for the style.

"project" — CompiledStyleSet

{"type": "project", "assets":, "name":}
{"type": "project", "assets":}
KeyTypeAlways requiredNotes
assetsobject std::shared_ptr<AssetPackage>yesan id of kind assets, or an inline spec
namestringno
PropertyTypeAccessDescription
assetPackageobject std::shared_ptr<massif::AssetPackage>read-onlyReturns the style asset package.
styleAssetNamestringread-onlyReturns the asset name defining the current style name.
styleNamestringread-onlyReturns the current style name.