From ca1b31bd9cc09f42e92258d05bbe16fabc90fce6 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Thu, 27 Feb 2014 17:20:23 +0100 Subject: [PATCH] Add example MapConfig using a torque layer --- tools/examples/mapconfig_torque.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tools/examples/mapconfig_torque.js diff --git a/tools/examples/mapconfig_torque.js b/tools/examples/mapconfig_torque.js new file mode 100644 index 00000000..fdff333c --- /dev/null +++ b/tools/examples/mapconfig_torque.js @@ -0,0 +1,10 @@ +{"version":"1.0.1", + "layers":[{ + "type":"torque", + "options":{ + "sql":"select 1 as id, ST_SetSRID(ST_MakePoint(0,0),3857) as the_geom_webmercator", + "cartocss":"Map{ -torque-time-attribute:'id'; -torque-aggregation-function:'count(id)'; -torque-frame-count:2; -torque-resolution:2}", + "cartocss_version": "2.1.1" + } + }] +}