Permalink
Browse files

Add example MapConfig using a torque layer

  • Loading branch information...
1 parent 55f333c commit ca1b31bd9cc09f42e92258d05bbe16fabc90fce6 Sandro Santilli committed Feb 27, 2014
Showing with 10 additions and 0 deletions.
  1. +10 −0 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"
+ }
+ }]
+}

0 comments on commit ca1b31b

Please sign in to comment.