Skip to content

Instantly share code, notes, and snippets.

@ramiroaznar
Created December 9, 2016 10:36
Show Gist options
  • Save ramiroaznar/60b9c5e62823b8640e0b5a68f9358a6a to your computer and use it in GitHub Desktop.
Save ramiroaznar/60b9c5e62823b8640e0b5a68f9358a6a to your computer and use it in GitHub Desktop.
CartoCSS style based on zoom
#layer{
marker-fill-opacity: 0.9;
marker-line-color: #FFF;
marker-line-width: 0;
marker-line-opacity: 1;
marker-placement: point;
marker-type: ellipse;
marker-width: 3;
marker-fill: #FF6600;
marker-allow-overlap: true;
[zoom = 4] {marker-width: 6}
[zoom = 5] {marker-width: 12}
[zoom > 5] {marker-width: 16}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment