Skip to main content

Torque runtime example | CartoDB.js

✓ Published0🌍 Public
Aandrewxhill
Last edited Feb 19, 2014
Created on Feb 19, 2014

A Torque map from CartoDB.js animates the movement of a monkey across a world map over 19 time frames. The code creates a Leaflet map centered on the equator, adds a Stamen toner tile layer, and loads a torque layer from the `monkey_jump` table on the `andrew` user account. The torque visualization uses custom CartoCSS to aggregate points by `count(cartodb_id)` with a linear data aggregation, rendering the path as red markers on a lighter blend over two seconds.

AI-generated description