Skip to content

Instantly share code, notes, and snippets.

@samanpwbb
Created August 29, 2014 14:39
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 samanpwbb/c0171d3e5798efe6372a to your computer and use it in GitHub Desktop.
Save samanpwbb/c0171d3e5798efe6372a to your computer and use it in GitHub Desktop.
#bathymetry[DEPTH<3000] {
text-face-name: 'hillshade Regular';
text-avoid-edges: true;
text-min-distance: 5;
text-placement:interior;
text-fill: mix(@lightblue,@blue,80);
text-allow-overlap: false;
text-name: "'a'";
[DEPTH>=0][DEPTH<500] {
text-size:30;
[zoom>=5] { text-size: 35;}
[zoom>=6] { text-size: 40;}
[zoom>=8] { text-size: 45;}
text-fill: mix(@lightblue,@purple,80);
}
[DEPTH>=500][DEPTH<1250] {
text-name: "'c'";
text-min-distance: 20;
text-size:25;
[zoom>=5] { text-size: 30;}
[zoom>=7] { text-size: 35;}
[zoom>=8] { text-size: 40;}
text-fill: mix(@lightblue,@blue,70);
}
[DEPTH>=1250][DEPTH<3000] {
text-name: "'b'";
text-min-distance: 30;
text-size:25;
[zoom>=5] { text-size: 30;}
[zoom>=7] { text-size: 35;}
[zoom>=8] { text-size: 40;}
text-fill: mix(@lightblue,@purple,70);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment