Skip to content

Instantly share code, notes, and snippets.

@ramiroaznar
Created August 22, 2016 12:38
Show Gist options
  • Save ramiroaznar/e3dc14406ac76ac1f5f3feab8db00c7a to your computer and use it in GitHub Desktop.
Save ramiroaznar/e3dc14406ac76ac1f5f3feab8db00c7a to your computer and use it in GitHub Desktop.
Category points CartoCSS style
/** category visualization */
#layer[year='2015']{
marker-fill-opacity: 1;
marker-line-color: #B40903;
marker-line-width: 1;
marker-line-opacity: 0;
marker-placement: point;
marker-type: ellipse;
marker-width: 3;
marker-fill: #F11810;
marker-allow-overlap: true;
}
#layer::point[year='2015']{
marker-fill-opacity: 0.5;
marker-line-color: #B40903;
marker-line-width: 1;
marker-line-opacity: 1;
marker-placement: point;
marker-type: ellipse;
marker-width: 12;
marker-fill: #F11810;
marker-allow-overlap: true;
}
#layer[year='2016']{
marker-fill-opacity: 1;
marker-line-color: #7fcdbb;
marker-line-width: 1;
marker-line-opacity: 0;
marker-placement: point;
marker-type: ellipse;
marker-width: 3;
marker-fill: #91e1d8;
marker-allow-overlap: true;
}
#layer::point[year='2016']{
marker-fill-opacity: 0.5;
marker-line-color: #7fcdbb;
marker-line-width: 1;
marker-line-opacity: 1;
marker-placement: point;
marker-type: ellipse;
marker-width: 12;
marker-fill: #91e1d8;
marker-allow-overlap: true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment