Created
July 14, 2016 07:36
-
-
Save ramiroaznar/06aeec0cf383318c1a9821305e83acb7 to your computer and use it in GitHub Desktop.
Torque Bubble + Color CartoCSS Style
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Torque Map Viz */ | |
Map { | |
-torque-frame-count:150; | |
-torque-animation-duration:30; | |
-torque-time-attribute:"date"; | |
-torque-aggregation-function:"sum(norm)"; | |
-torque-resolution:4; | |
-torque-data-aggregation:linear; | |
} | |
#layer { | |
comp-op: multiply; | |
marker-fill-opacity: 0.7; | |
marker-line-width: 0.4; | |
marker-line-opacity: 1; | |
marker-width: 8; | |
marker-allow-overlap: true; | |
marker-fill: rgb(223,253,251); | |
marker-line-color: #BCEEEA ; | |
} | |
#layer { | |
[value >= 0] { | |
marker-fill: #5c53a5; | |
marker-width: 2 | |
} | |
[value >= 25] { | |
marker-fill: #a059a0; | |
marker-width: 4 | |
} | |
[value >= 50] { | |
marker-fill: #ce6693; | |
marker-width: 8 | |
} | |
[value >= 75] { | |
marker-fill: #eb7f86; | |
marker-width: 16 | |
} | |
| |
[value >= 100] { | |
marker-fill: #f8a07e; | |
marker-width: 32 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment