Skip to content

Instantly share code, notes, and snippets.

@anderser
Last active August 29, 2015 14:05
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 anderser/455378d9fa810252a166 to your computer and use it in GitHub Desktop.
Save anderser/455378d9fa810252a166 to your computer and use it in GitHub Desktop.
CartoCSS for kommunekart med navn på kommuner
Map {
background-color: #ffffff;
}
#kommuner {
polygon-fill: #e8e4e4;
polygon-opacity: 1;
line-color: #a1a1a1;
line-width: 0.5;
}
@sans:"Arial","Droid Sans Book","DejaVu Sans Book";
#kommunelabels[zoom>6] {
text-name:'[navn]';
text-face-name:@sans;
text-fill:#4e4e58;
text-size:8;
text-placement: interior;
text-character-spacing:1;
text-wrap-width:40;
text-line-spacing:2;
text-halo-radius:0.0;
text-halo-fill:rgba(0,0,0,0.75);
[zoom=8] {
text-size:12; text-character-spacing:1;
}
[zoom=9] {
text-size:14; text-character-spacing:2;
}
[zoom>9] {
text-size:16;
text-character-spacing:2;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment