Skip to content

Instantly share code, notes, and snippets.

@ramiroaznar
Created October 14, 2016 08:34
Show Gist options
  • Save ramiroaznar/77878848f7f770dc0af1555f804039d3 to your computer and use it in GitHub Desktop.
Save ramiroaznar/77878848f7f770dc0af1555f804039d3 to your computer and use it in GitHub Desktop.
CARTO Torque + Proportional Symbols + choropleth style
Map {
-torque-frame-count: 256;
-torque-animation-duration: 30;
-torque-time-attribute: "date";
-torque-aggregation-function: "avg(damage)";
-torque-resolution: 4;
-torque-data-aggregation: linear;
}
#layer {
marker-width: 7;
marker-fill: #FFB927;
marker-fill-opacity: 0.5;
marker-line-width: 1;
marker-line-color: #FFF;
marker-line-opacity: 0.7;
comp-op: lighter;
}
#layer {
[ value <= 181] {
marker-width: 32;
marker-fill: #B10026;
}
[ value <= 16.2959] {
marker-width: 24;
marker-fill: #E31A1C;
}
[ value <= 2.55648] {
marker-width: 18;
marker-fill: #FC4E2A;
}
[ value <= 1.4796] {
marker-width: 12;
marker-fill: #FD8D3C;
}
[ value <= 0.62302] {
marker-width: 10;
marker-fill: #FEB24C;
}
[ value <= 0.24804] {
marker-width: 7;
marker-fill: #FED976;
}
[ value <= 0.2454] {
marker-width: 5;
marker-fill: #FFFFB2;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment