Skip to main content

CartoCSS property reference

Generated

scripts/gen-cartocss-properties.py reads the bindProperty() calls in libs-massif/mapnikvt/src/mapnikvt/*Symbolizer.h and the name map in CartoCSSMapnikTranslator.cpp. Edit those, then re-run the script — never this page.

242 properties across 12 symbolizers.

Reading the table

  • live — the value is re-evaluated every frame, so a param:: reaching only properties like these changes the map with a redraw. See Style parameters.
  • baked — the property is also read while the tile is built (it sizes a raster, shapes a join, decides a glyph). A param:: reaching one forces a re-decode of every visible tile, however live its type is.
  • Liveness is decided per parameter across the whole style, not per use: one baked use anywhere makes the parameter baked everywhere.
  • Default is also the fallback: a value reading a field the feature does not carry (or a parameter with no value) evaluates to unset, and an unset value takes the default rather than failing. Write an explicit guard — [color] <> null ? [color] : '#0000ff' — when the fallback should be something else.

Live-capable properties: 61 of 242.

building

CartoCSSmapnikValueDefaultLiveBaked
building-elevation-modeelevation-modestringdrape
building-emissive-strengthemissive-strengthfloat-1.0yes
building-fillfillcolor#808080yes
building-fill-opacityfill-opacityfloat1.0yes
building-geometry-transformgeometry-transformtransform
building-heightheightfloat0.0
building-min-heightmin-heightfloat0.0

contour

CartoCSSmapnikValueDefaultLiveBaked
contour-base-intervalbase-intervalfloat10.0
contour-min-visible-zoommin-visible-zoomfloat12.0
contour-resolutionresolutionfloat128.0
contour-simplify-tolerancesimplify-tolerancefloat1.0
contour-visiblevisiblebooltrue

hillshade

CartoCSSmapnikValueDefaultLiveBaked
hillshade-accent-coloraccent-colorcolor#000000
hillshade-comp-opcomp-opcomp-opsrc-over
hillshade-contour-colorcontour-colorcolor#804000
hillshade-contour-intervalcontour-intervalfloat0.0yes
hillshade-contour-widthcontour-widthfloat1.0yes
hillshade-contrastcontrastfloat0.5yes
hillshade-exaggerationexaggerationfloat1.0yes
hillshade-height-scaleheight-scalefloat1.0yes
hillshade-highlight-colorhighlight-colorcolor#ffffff
hillshade-illumination-directionillumination-directionfloat335.0yes
hillshade-methodmethodstringstandard
hillshade-opacityopacityfloat1.0yes
hillshade-shadow-colorshadow-colorcolor#000000
hillshade-visiblevisiblebooltrue

line

CartoCSSmapnikValueDefaultLiveBaked
line-arrow-lengtharrow-lengthfloat2.5
line-arrow-onlyarrow-onlyboolfalse
line-arrow-patharrow-pathstring
line-arrow-rotationarrow-rotationfloat0.0
line-arrow-scalearrow-scalefloat1.0
line-arrow-widtharrow-widthfloat3.0
line-blurblurfloat0.0yes
line-border-colorborder-colorcolor#000000yes
line-border-widthborder-widthfloat0.0yes
line-capstroke-linecapenumbutt
line-colorstrokecolor#000000yes
line-comp-opcomp-opcomp-opsrc-over
line-dasharraystroke-dasharraystring
line-elevation-modeelevation-modestringdrape
line-emissive-strengthstroke-emissive-strengthfloat1.0yes
line-end-arrowend-arrowboolfalse
line-gap-widthgap-widthfloat0.0yes
line-geometry-transformgeometry-transformtransform
line-joinstroke-linejoinenummiter
line-miterlimitstroke-miterlimitfloat4.0yes
line-offsetoffsetfloat0.0yes
line-opacitystroke-opacityfloat1.0yes
line-widthstroke-widthfloat1.0yes

line-pattern

CartoCSSmapnikValueDefaultLiveBaked
line-pattern-comp-opcomp-opcomp-opsrc-over
line-pattern-emissive-strengthemissive-strengthfloat1.0yes
line-pattern-filefilestring
line-pattern-fillfillcolor#ffffffyes
line-pattern-geometry-transformgeometry-transformtransform
line-pattern-offsetoffsetfloat0.0yes
line-pattern-opacityopacityfloat1.0yes

marker

CartoCSSmapnikValueDefaultLiveBaked
marker-allow-overlapallow-overlapboolfalse
marker-allow-overlap-same-feature-idallow-overlap-same-feature-idboolfalse
marker-clipclipboolfalse
marker-colorcolorcolor#ffffffyes
marker-comp-opcomp-opcomp-opsrc-over
marker-emissive-strengthemissive-strengthfloat1.0yes
marker-feature-idfeature-idvalue
marker-filefilestring
marker-fillfillcolor#0000ff
marker-fill-opacityfill-opacityfloat1.0
marker-halo-emissive-strengthhalo-emissive-strengthfloat-1.0yes
marker-halo-fillhalo-fillcolor#ffffffyes
marker-halo-opacityhalo-opacityfloat1.0yes
marker-halo-radiushalo-radiusfloat0.0yes
marker-heightheightfloat0.0yes
marker-ignore-placementignore-placementboolfalse
marker-line-colorstrokecolor#000000
marker-line-opacitystroke-opacityfloat1.0
marker-line-widthstroke-widthfloat0.5yes
marker-max-distancemax-distancefloat0.0
marker-opacityopacityfloat1.0yes
marker-placementplacementvaluepoint
marker-placement-priorityplacement-priorityfloat0.0
marker-rankrankfloat0.0yes
marker-same-feature-id-dependentsame-feature-id-dependentboolfalse
marker-sdfsdfboolfalse
marker-spacingspacingfloat100.0
marker-transformtransformtransform
marker-typemarker-typevalueauto
marker-widthwidthfloat0.0yes

point

CartoCSSmapnikValueDefaultLiveBaked
point-comp-opcomp-opcomp-opsrc-over
point-filefilestring
point-opacityopacityfloat1.0yes
point-transformtransformtransform

polygon

CartoCSSmapnikValueDefaultLiveBaked
polygon-comp-opcomp-opcomp-opsrc-over
polygon-elevation-modeelevation-modestringdrape
polygon-emissive-strengthfill-emissive-strengthfloat1.0yes
polygon-fillfillcolor#808080yes
polygon-geometry-transformgeometry-transformtransform
polygon-opacityfill-opacityfloat1.0yes

polygon-pattern

CartoCSSmapnikValueDefaultLiveBaked
polygon-pattern-comp-opcomp-opcomp-opsrc-over
polygon-pattern-emissive-strengthemissive-strengthfloat1.0yes
polygon-pattern-filefilestring
polygon-pattern-fillfillcolor#ffffffyes
polygon-pattern-geometry-transformgeometry-transformtransform
polygon-pattern-opacityopacityfloat1.0yes

raster

CartoCSSmapnikValueDefaultLiveBaked
raster-comp-opcomp-opcomp-opsrc-over
raster-filter-modefilter-modestringbilinear
raster-opacityopacityfloat1.0yes
raster-visiblevisiblebooltrue

shield

CartoCSSmapnikValueDefaultLiveBaked
shield-allow-overlapallow-overlapboolfalse
shield-anchorsanchorsstring
shield-avoid-edgesavoid-edgesvalue
shield-background-border-fillbackground-border-fillcolor#000000
shield-background-border-opacitybackground-border-opacityfloat1.0
shield-background-border-widthbackground-border-widthfloat0.0
shield-background-fillbackground-fillcolortransparent
shield-background-heightbackground-heightfloat0.0
shield-background-opacitybackground-opacityfloat1.0
shield-background-padding-xbackground-padding-xfloat3.0
shield-background-padding-ybackground-padding-yfloat2.0
shield-background-radiusbackground-radiusfloat0.0
shield-background-widthbackground-widthfloat0.0
shield-character-spacingcharacter-spacingfloat0.0
shield-clipclipboolfalse
shield-collision-paddingcollision-paddingfloat0.0
shield-comp-opcomp-opcomp-opsrc-over
shield-dxshield-dxfloat0.0
shield-dyshield-dyfloat0.0
shield-emissive-strengthemissive-strengthfloat1.0yes
shield-face-nameignored
shield-feature-idfeature-idvalue
shield-filefilestring
shield-fillfillcolor#000000yes
shield-halo-emissive-strengthhalo-emissive-strengthfloat-1.0yes
shield-halo-fillhalo-fillcolor#ffffffyes
shield-halo-opacityhalo-opacityfloat1.0yes
shield-halo-radiushalo-radiusfloat0.0yes
shield-halo-rasterizerhalo-rasterizervalue
shield-horizontal-alignmenthorizontal-alignmentvalueauto
shield-icon-background-border-fillicon-background-border-fillcolor#000000
shield-icon-background-border-opacityicon-background-border-opacityfloat1.0
shield-icon-background-border-widthicon-background-border-widthfloat0.0
shield-icon-background-fillicon-background-fillcolortransparent
shield-icon-background-heighticon-background-heightfloat0.0
shield-icon-background-opacityicon-background-opacityfloat1.0
shield-icon-background-padding-xicon-background-padding-xfloat3.0
shield-icon-background-padding-yicon-background-padding-yfloat2.0
shield-icon-background-radiusicon-background-radiusfloat0.0
shield-icon-background-widthicon-background-widthfloat0.0
shield-icon-dxicon-dxfloat0.0
shield-icon-dyicon-dyfloat0.0
shield-icon-face-nameicon-face-namestring
shield-icon-fillicon-fillcolor#000000yes
shield-icon-halo-fillicon-halo-fillcolor#000000yes
shield-icon-halo-radiusicon-halo-radiusfloat0.0yes
shield-icon-nameicon-namestring
shield-icon-opacityicon-opacityfloat1.0yes
shield-icon-sizeicon-sizefloat0.0
shield-image-scaleimage-scalefloat1.0yes
shield-line-spacingline-spacingfloat0.0
shield-max-distancemax-distancefloat0.0
shield-min-distanceminimum-distancefloat0.0
shield-nameignored
shield-occlusion-opacityocclusion-opacityfloat-1.0
shield-orientationorientationfloat0.0
shield-placementplacementvaluepoint
shield-placement-priorityplacement-priorityfloat0.0
shield-rankrankfloat0.0yes
shield-sdfsdfboolfalse
shield-sizesizefloat10.0yes
shield-spacingspacingfloat0.0
shield-text-dxdxfloat0.0
shield-text-dydyfloat0.0
shield-text-horizontal-alignmenttext-horizontal-alignmentstring
shield-text-opacityopacityfloat1.0yes
shield-text-optionaltext-optionalboolfalse
shield-text-radial-offsettext-radial-offsetfloat0.0
shield-text-transformtext-transformvaluenone
shield-unlock-imageunlock-imageboolfalse
shield-vertical-alignmentvertical-alignmentvalueauto
shield-wrap-beforewrap-beforeboolfalse
shield-wrap-characterwrap-characterstring
shield-wrap-widthwrap-widthfloat0.0

text

CartoCSSmapnikValueDefaultLiveBaked
text-allow-overlapallow-overlapboolfalse
text-allow-overlapallow-overlapboolfalse
text-allow-overlap-same-feature-idallow-overlap-same-feature-idboolfalse
text-avoid-edgesavoid-edgesvalue
text-background-border-fillbackground-border-fillcolor#000000
text-background-border-opacitybackground-border-opacityfloat1.0
text-background-border-widthbackground-border-widthfloat0.0
text-background-fillbackground-fillcolortransparent
text-background-heightbackground-heightfloat0.0
text-background-opacitybackground-opacityfloat1.0
text-background-padding-xbackground-padding-xfloat3.0
text-background-padding-ybackground-padding-yfloat2.0
text-background-radiusbackground-radiusfloat0.0
text-background-widthbackground-widthfloat0.0
text-callout-aligncallout-alignstring
text-callout-line-anchorcallout-line-anchorstring
text-callout-line-widthcallout-line-widthfloat1.0
text-callout-max-rowscallout-max-rowsfloat8.0
text-callout-offsetcallout-offsetfloat0.0
text-callout-persistcallout-persistfloat0.0
text-callout-screen-anchorcallout-screen-anchorfloat-1.0
text-callout-stepcallout-stepfloat0.0
text-character-spacingcharacter-spacingfloat0.0
text-clipclipboolfalse
text-collision-paddingcollision-paddingfloat0.0
text-comp-opcomp-opcomp-opsrc-over
text-dxdxfloat0.0
text-dydyfloat0.0
text-emissive-strengthemissive-strengthfloat1.0yes
text-face-nameignored
text-feature-idfeature-idvalue
text-fillfillcolor#000000yes
text-halo-emissive-strengthhalo-emissive-strengthfloat-1.0yes
text-halo-fillhalo-fillcolor#ffffffyes
text-halo-opacityhalo-opacityfloat1.0yes
text-halo-radiushalo-radiusfloat0.0yes
text-halo-rasterizerhalo-rasterizervalue
text-horizontal-alignmenthorizontal-alignmentvalueauto
text-line-spacingline-spacingfloat0.0
text-max-distancemax-distancefloat0.0
text-min-distanceminimum-distancefloat0.0
text-nameignored
text-occlusion-opacityocclusion-opacityfloat-1.0
text-opacityopacityfloat1.0yes
text-orientationorientationfloat0.0
text-placementplacementvaluepoint
text-placement-priorityplacement-priorityfloat0.0
text-rankrankfloat0.0yes
text-same-feature-id-dependentsame-feature-id-dependentboolfalse
text-secondary-dxsecondary-dxfloat0.0
text-secondary-dysecondary-dyfloat0.0
text-secondary-fillsecondary-fillcolor#000000yes
text-secondary-namesecondary-namestring
text-secondary-opacitysecondary-opacityfloat1.0yes
text-secondary-scalesecondary-scalefloat0.7
text-sizesizefloat10.0yes
text-spacingspacingfloat0.0
text-transformtext-transformvaluenone
text-vertical-alignmentvertical-alignmentvalueauto
text-wrap-beforewrap-beforeboolfalse
text-wrap-characterwrap-characterstring
text-wrap-widthwrap-widthfloat0.0