I'm trying to style a torque heatmap in Cartodb based on a weighting value(pntcnt) rather than sum of points in an area. I think i've generated the appropriate value with the -torque-aggregation-function:"sum(pntcnt)";
However I can't seem to get the styling right.
I am new to CartoDB.
Full CSS code.
Map {
-torque-aggregation-function:"sum(pntcnt)";
-torque-resolution:2;
-torque-data-aggregation:linear;
}
#heatmap{
image-filters: colorize-alpha(blue, cyan, #008000, yellow , orange, red);
marker-file: url(http://s3.amazonaws.com/com.cartodb.assets.static/alphamarker.png);
[value > 500] { marker-fill: blue; }
[value > 1000] { marker-fill: cyan; }
[value > 1500 an] { marker-fill: yellow; }
[value > 2500 { marker-fill: red; }
}
Data look something like this
Cartodb_ID the_Geom pntcnt
7384 -107.6227, 24.4173 3391
7476 -107.6140, 24.4219 2514
6481 -107.7091, 24.4809 2352
6572 -107.7004, 24.4764 2258