Skip to content

Instantly share code, notes, and snippets.

@wboykinm
Created August 25, 2014 17:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wboykinm/8bd89a8b4ef0d489a4ba to your computer and use it in GitHub Desktop.
Save wboykinm/8bd89a8b4ef0d489a4ba to your computer and use it in GitHub Desktop.
"Afternoon Satellite" - Mapbox "Satellite Afternoon", tweaked a bit.
// Languages: name (local), name_en, name_fr, name_es, name_de
@name: '[name_en]';
@sans: 'Mark Offc Pro Regular', 'Arial Unicode MS Regular';
@sans_it: 'Mark Offc Pro Italic', 'Arial Unicode MS Regular';
@serif_md: 'Mark Offc Pro Bold', 'Arial Unicode MS Regular';
@sans_bold: 'Mark Offc Pro Bold', 'Arial Unicode MS Regular';
#country_label {
text-name: @name;
text-face-name: @serif_md;
text-fill: #ed8;
text-halo-fill: fadeout(darken(@water,10),95);
text-halo-radius: 3;
text-halo-rasterizer: fast;
[zoom>=3] {
text-size: 10;
[scalerank<=6] { text-size: 12; }
[scalerank<=4] { text-size: 14; }
[scalerank<=2] { text-size: 16; }
}
[zoom>=5] {
text-size: 11;
[scalerank<=6] { text-size: 14; }
[scalerank<=4] { text-size: 17; }
[scalerank<=2] { text-size: 20; }
}
[zoom>=6] {
text-size: 14;
[scalerank<=6] { text-size: 18; }
[scalerank<=4] { text-size: 22; }
[scalerank<=2] { text-size: 26; }
}
}
#place_label[zoom>=5] {
[type='city'][zoom<=15][scalerank<6] {
text-name: @name;
text-face-name: @sans_bold;
text-fill: @places;
text-size: 16;
text-wrap-width: 100;
text-wrap-before: true;
text-min-distance: 20;
[zoom>=10] { text-size: 18; }
[zoom>=12] { text-size: 22; }
text-halo-radius:2.0;
text-halo-fill:@places_halo;
text-halo-rasterizer:fast;
text-transform:uppercase;
}
[type='town'][zoom>=9][zoom<=17],
[type='city'][zoom<=15][scalerank>=6]{
text-name: @name;
text-face-name: @sans;
text-fill: @places;
text-size: 11;
text-wrap-width: 100;
text-wrap-before: true;
text-min-distance: 40;
[zoom>=10] { text-size: 12; }
[zoom>=12] { text-size: 14; }
text-halo-radius:2.0;
text-halo-fill:@places_halo;
text-halo-rasterizer:fast;
text-transform:uppercase;
}
[type='village'][zoom>=10] {
text-name: @name;
text-face-name: @sans;
text-fill: @places;
text-size: 10;
text-wrap-width: 100;
text-wrap-before: true;
text-min-distance: 40;
[zoom>=12] { text-size: 11; }
[zoom>=14] { text-size: 13; }
text-halo-radius:2.0;
text-halo-fill:@places_halo;
text-halo-rasterizer:fast;
text-transform:uppercase;
}
[type='hamlet'],
[type='suburb'],
[type='neighbourhood'] {
text-name: @name;
text-face-name: @sans;
text-fill: @places;
text-size: 10;
text-wrap-width: 100;
text-wrap-before: true;
text-min-distance: 40;
[zoom>=14] { text-size: 11; }
[zoom>=16] { text-size: 13; }
text-halo-radius:1.6;
text-halo-fill:@places_halo;
text-halo-rasterizer:fast;
text-transform:uppercase;
}
}
#poi_label[scalerank<3][zoom>=14] {
text-name:"[name]";
text-face-name:@sans_it;
text-size:10;
text-wrap-width:30;
text-fill: @places;
text-transform:uppercase;
text-min-distance: 20;
}
#water_label {
[zoom<=15][area>200000],
[zoom=16][area>50000],
[zoom=17][area>10000],
[zoom>=18][area>0]{
text-name: @name;
text-size: 14;
text-line-spacing: -2;
text-face-name: @sans_it;
text-fill: #abc;
text-halo-fill: fadeout(@water,85);
text-halo-radius: 2;
text-halo-rasterizer: fast;
}
}
// Common Colors //
@water: #456;
@places: #e2e3e3;
@places_halo:fadeout(#236B8E,80);
#water {
polygon-fill: @water;
opacity: 0.8
}
#road, #bridge {
line-color: #abc;
comp-op: soft-light;
}
#mapbox_satellite_full,
#mapbox_satellite_watermask {
raster-opacity: 1;
/*image-filters: scale-hsla( 0.5,0.6, 0.0,0.2, 0.4,0.8, 0,1 );*/
}
// Southern Hemisphere:
/*#hillshade {
comp-op: overlay;
polygon-opacity: 0.5;
[class='medium_shadow'] { polygon-fill: #46a; }
[class='full_shadow'] { polygon-fill: #246; }
[class='medium_highlight'] { polygon-fill: #ea8; }
[class='full_highlight'] { polygon-fill: #fea; }
}*/
//Reverse
#hillshade {
comp-op: overlay;
polygon-opacity: 0.8;
[class='medium_shadow'] { polygon-fill: #ea8; }
[class='full_shadow'] { polygon-fill: #fea; }
[class='medium_highlight'] { polygon-fill: #46a; }
[class='full_highlight'] { polygon-fill: #246; }
}
#admin[admin_level=2] {
[maritime=0] {
::case {
opacity: 0.5;
line-color: @water;
line-join: round;
line-cap: round;
line-width: 3;
[zoom>=6] { line-width: 5; }
}
::fill {
line-color: white;
line-join: round;
line-cap: round;
line-width: 0.6;
[zoom>=6] { line-width: 1; }
}
}
[maritime=1] { line-color: #345; line-dasharray: 3,2; }
}
#contour {
line-color: #e2e3e3;
line-width: 0.4;
line-opacity: 0.3;
line-join: round;
line-comp-op: color-dodge;
[index=5],[index=10]{line-width: 0.8;}
}
#admin[admin_level=4][maritime=0] {
::case {
line-opacity: 0.5;
line-color: @water;
line-join: round;
line-cap: round;
line-width: 3;
}
::fill {
line-opacity: 0.75;
line-color: white;
line-join: round;
line-cap: round;
line-width: 0.6;
line-dasharray: 2,2;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment