Skip to content

Instantly share code, notes, and snippets.

@ramiroaznar
Created December 11, 2016 10:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ramiroaznar/c1d786148ce46936febf48836a9ce3b3 to your computer and use it in GitHub Desktop.
Save ramiroaznar/c1d786148ce46936febf48836a9ce3b3 to your computer and use it in GitHub Desktop.
Generic CartoCSS style
/* Points */
#layer['mapnik::geometry_type'=1] {
marker-width: 7;
marker-fill: #FFB927;
marker-fill-opacity: 0.9;
marker-line-color: #FFF;
marker-line-width: 1;
marker-line-opacity: 1;
marker-placement: point;
marker-type: ellipse;
marker-allow-overlap: true;
}
/* Lines */
#layer['mapnik::geometry_type'=2] {
line-color: #3EBCAE;
line-width: 1.5;
line-opacity: 1;
}
/* Polygons */
#layer['mapnik::geometry_type'=3] {
polygon-fill: #374C70;
polygon-opacity: 0.9;
polygon-gamma: 0.5;
line-color: #FFF;
line-width: 1;
line-opacity: 0.5;
line-comp-op: soft-light;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment