Tuesday 4 July 2017

carto - CSS Styling Torque in CartoDB


I am trying to make a map that would show the total load of a bus. I have plotted the route and set up the time constraints. The ellipse is moving and seems to work fine, but when I try to style the ellipses based on the amount of load the marker-fill is completely removed.


Has anyone had this problem before?


/** torque visualization */

Map {
-torque-aggregation-function:"round(avg(load))";

-torque-resolution: 2;
}

#table_14{
comp-op: lighter;
marker-fill-opacity: 0.9;
marker-line-color: #FFFFFF;
marker-line-width: 0.5;
marker-line-opacity: 1;
marker-type: ellipse;

marker-width: 6;

}
#table_11
[value >10] { marker-fill: #000; }
#table_11
[value > 8] { marker-fill: #400; }
#table_11
[value > 3] { marker-fill: #800; }
#table_11

[value > 0] { marker-fill: #F00; }

Table


map




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...