Created
February 15, 2017 13:16
-
-
Save ramiroaznar/a41a916cbd954f420e05ff10fb4ce8dc to your computer and use it in GitHub Desktop.
Zoom Based Styling
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
@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