Skip to content

Instantly share code, notes, and snippets.

@ramiroaznar
Created February 15, 2017 13:16
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/a41a916cbd954f420e05ff10fb4ce8dc to your computer and use it in GitHub Desktop.
Save ramiroaznar/a41a916cbd954f420e05ff10fb4ce8dc to your computer and use it in GitHub Desktop.
Zoom Based Styling
@width: 2;
#layer {
marker-width: @width;
marker-fill: ramp([arrest_char], (#ffdd00, #1dae00), ("Not arrested", "Arrested"), "=");
marker-fill-opacity: 1;
marker-allow-overlap: true;
marker-line-width: 0;
marker-line-color: #FFF;
marker-line-opacity: 1;
marker-comp-op: multiply;
[zoom>12]{marker-width: @width*2;}
[zoom>14]{marker-width: @width*4;}
[zoom>16]{marker-width: @width*6;}
[zoom>18]{marker-width: @width*8;}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment