Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/** torque visualization */
Map {
-torque-frame-count:107;
-torque-animation-duration:7;
-torque-time-attribute:"time";
-torque-aggregation-function:"avg(value)";
-torque-resolution:2;
-torque-data-aggregation:linear;
}
#measles_122014_032015{
comp-op: lighter;
marker-fill-opacity: 0.9;
marker-line-color: #FFF;
marker-line-width: 0.1;
marker-line-opacity: 1;
marker-type: ellipse;
marker-width: 5.5;
marker-fill: #FF9900;
[value<10000001] {
marker-width: 5.5;
marker-fill-opacity: 0.9;
}
[value<7500001] {
marker-width: 3.5;
marker-fill-opacity: 0.9;
}
[value<5000001] {
marker-width: 2.5;
marker-fill-opacity: 0.8;
}
[value<2500001] {
marker-width: 2;
marker-fill-opacity: 0.7;
}
[value<1200001] {
marker-width: 1.5;
marker-fill-opacity: 0.6;
}
}
#measles_122014_032015[frame-offset=1][value>2] {
marker-width:7.5;
marker-fill-opacity:0.45;
}
#measles_122014_032015[frame-offset=2][value>10] {
marker-width:9.5;
marker-fill-opacity:0.225;
}
#measles_122014_032015[frame-offset=3][value>20] {
marker-width:11.5;
marker-fill-opacity:0.15;
}
#measles_122014_032015[frame-offset=4][value>40] {
marker-width:13.5;
marker-fill-opacity:0.1125;
}
#measles_122014_032015[frame-offset=5][value>50] {
marker-width:15.5;
marker-fill-opacity:0.09;
}
#measles_122014_032015[frame-offset=6][value>60] {
marker-width:17.5;
marker-fill-opacity:0.075;
}
#measles_122014_032015[frame-offset=7][value>80] {
marker-width:19.5;
marker-fill-opacity:0.0642857142857143;
}
#measles_122014_032015[frame-offset=8][value>100] {
marker-width:21.5;
marker-fill-opacity:0.05625;
}
#measles_122014_032015[frame-offset=9][value>200] {
marker-width:23.5;
marker-fill-opacity:0.05;
}
#measles_122014_032015[frame-offset=10][value>300] {
marker-width:25.5;
marker-fill-opacity:0.045;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.