Skip to content

Instantly share code, notes, and snippets.

@wboykinm
Created October 2, 2013 00:52
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 wboykinm/6787510 to your computer and use it in GitHub Desktop.
Save wboykinm/6787510 to your computer and use it in GitHub Desktop.
First draft, new basemap style
@water: ;
@land: ;
@roads: ;
@buildings: ;
Map {
background-color: #b8dee6;
}
#countries {
polygon-fill: #0bcea8;
polygon-opacity:1;
/*image-filters:invert();*/
/*polygon-pattern-file: url('../img/8 Seamless Paper Textures/Japanese Calligraphy Rice Paper.jpg');
*/}
#rds {
::halo {
line-color:#00B990;
line-smooth:3;
line-join:round;
/*line-comp-op:contrast;*/
[AOTCLASS=1],[AOTCLASS>=40]{line-width:4;}
[AOTCLASS=2],[AOTCLASS=30]{line-width:3;}
[AOTCLASS=3]{line-width:0.2;}
[AOTCLASS=4]{line-width:0.1;}
[AOTCLASS>5][AOTCLASS<30]{line-width:0.1;}
}
::main {
line-color:#fdfcfd;
line-smooth:3;
line-opacity:0.8;
line-join:round;
line-comp-op:overlay;
[AOTCLASS=1],[AOTCLASS>=40]{line-width:2.5;}
[AOTCLASS=2],[AOTCLASS=30]{line-width:2;}
[AOTCLASS=3]{line-width:0.2;}
[AOTCLASS=4]{line-width:0.1;}
[AOTCLASS>5][AOTCLASS<30]{line-width:0.05;}
}
::labels {
text-name:'[SN]';
text-face-name:'By People Handwritten Regular';
text-size:20;
text-transform:uppercase;
text-fill:#fff;
text-character-spacing:2;
text-dy:15;
text-min-distance: 20000;
text-placement:line;
text-halo-fill:#2f2593;
text-halo-radius:2;
text-spacing:20000;
text-clip:false;
}
}
#prints {
line-color:#aec9d9;
line-smooth:0.1;
line-width:0;
polygon-opacity:0.7;
polygon-fill:#fe8315;
polygon-comp-op:invert;
}
#lake {
line-color:#fff;
polygon-pattern-file:url('../img/waterpaint.jpg');
polygon-opacity:0;
::line1 {
image-filters:agg-stack-blur(6,6);
line-width:6;
line-opacity:0.4;
}
/*::contour1 {
line-offset:-2;
line-width:0.5;
line-color:#fff;
line-smooth:3;
line-opacity:0.2;
}
::contour2 {
line-offset:-4;
line-width:0.5;
line-color:#fff;
line-smooth:3;
line-opacity:0.2;
}
::contour3 {
line-offset:-8;
line-width:0.5;
line-color:#fff;
line-smooth:3;
line-opacity:0.2;
}
::contour4 {
line-offset:-16;
line-width:0.5;
line-color:#fff;
line-smooth:3;
line-opacity:0.2;
}
::contour5 {
line-offset:-32;
line-width:0.5;
line-color:#fff;
line-smooth:3;
line-opacity:0.2;
}
::contour6 {
line-offset:-64;
line-width:0.5;
line-color:#fff;
line-smooth:3;
line-opacity:0.2;
}
::contour7 {
line-offset:-120;
line-width:0.5;
line-color:#fff;
line-smooth:3;
line-opacity:0.2;
}
::contour8 {
line-offset:-160;
line-width:0.5;
line-color:#fff;
line-smooth:3;
line-opacity:0.2;
}
::contour9 {
line-offset:-200;
line-width:0.5;
line-color:#fff;
line-smooth:3;
line-opacity:0.2;
}
::contour10 {
line-offset:-260;
line-width:0.5;
line-color:#fff;
line-smooth:3;
line-opacity:0.2;
}
::contour11 {
line-offset:-340;
line-width:0.5;
line-color:#fff;
line-smooth:3;
line-opacity:0.2;
}
::contour12 {
line-offset:-440;
line-width:0.5;
line-color:#fff;
line-smooth:3;
line-opacity:0.2;
}*/
}
#nhd {
polygon-pattern-file:url('../img/waterpaint.jpg');
/*::line1 {
line-color:#fff;
image-filters:agg-stack-blur(6,6);
line-width:6;
line-opacity:0.4;
}*/
}
#terrain {
line-color:#000;
line-width:0.3;
line-opacity:0.6;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment