torque/docs/guides/02-CartoCSS.md

25 lines
1.1 KiB
Markdown
Raw Normal View History

## Torque CartoCSS
2018-02-20 23:53:51 +08:00
2018-04-12 19:35:34 +08:00
CartoCSS is one the tools of the CARTO platform. You can learn more about the different [components of CARTO platform]({{site.fundamental_docs}}/components/), or directly dig into [CartoCSS too]({{site.tools_cartocss}}/) details.
`-torque-clear-color`
2018-02-20 23:53:51 +08:00
Color used to clear canvas on each frame.
2018-04-12 19:35:34 +08:00
`-torque-frame-count`
2018-02-20 23:53:51 +08:00
Number of animation steps/frames used in the animation. If the data contains a fewer number of total frames, the lesser value will be used.
2018-04-12 19:35:34 +08:00
`-torque-resolution`
2018-02-20 23:53:51 +08:00
Spatial resolution in pixels. A resolution of 1 means no spatial aggregation of the data. Any other resolution of N results in spatial aggregation into cells of NxN pixels. The value N must be power of 2.
2018-04-12 19:35:34 +08:00
`-torque-animation-duration`
2018-02-20 23:53:51 +08:00
Animation duration in seconds.
2018-04-12 19:35:34 +08:00
`-torque-aggregation-function`
2018-02-20 23:53:51 +08:00
A function used to calculate a value from the aggregate data for each cell. See [-torque-resolution](#-torque-resolution).
2018-04-12 19:35:34 +08:00
`-torque-time-attribute`
2018-02-20 23:53:51 +08:00
The table column that contains the time information used create the animation.
2018-04-12 19:35:34 +08:00
`-torque-data-aggregation`
2018-02-20 23:53:51 +08:00
A linear animation will discard previous values while a cumulative animation will accumulate them until it restarts.