Skip to content

Commit

Permalink
first pass
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasviglakis committed Jan 7, 2015
0 parents commit 3a53d21
Show file tree
Hide file tree
Showing 14 changed files with 2,630 additions and 0 deletions.
Binary file added .thumb.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions LICENSE.txt
@@ -0,0 +1,28 @@
Copyright © 2014, Mapbox. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
* Neither the name of the Mapbox, Inc. nor the names of
its contributors may be used to endorse or promote products
derived from this software without specific prior written
permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3 changes: 3 additions & 0 deletions README.md
@@ -0,0 +1,3 @@
Mapbox light
===========================
Light basemap style for [Mapbox Studio](https://github.com/mapbox/mapbox-studio).
1 change: 1 addition & 0 deletions bookmarks.yml
@@ -0,0 +1 @@
[]
84 changes: 84 additions & 0 deletions dot.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
222 changes: 222 additions & 0 deletions labels.mss
@@ -0,0 +1,222 @@


// Country labels //
#country_label[zoom>=3] {
text-name: @name;
text-face-name: @sans_bd;
text-fill: @text;
text-size: 12;
text-halo-fill: @land;
text-halo-radius: 1;
text-wrap-width: 50;
[zoom>=3][scalerank=1],
[zoom>=4][scalerank=2],
[zoom>=5][scalerank=3],
[zoom>=6][scalerank>3] {
text-size: 14;
}
[zoom>=4][scalerank=1],
[zoom>=5][scalerank=2],
[zoom>=6][scalerank=3],
[zoom>=7][scalerank>3] {
text-size: 16;
}
[zoom>=6][scalerank=1],
[zoom>=7][scalerank=2],
[zoom>=8][scalerank>=3] {
text-size: 20;
}
}

#country_label_line {
line-color: @text;
line-dasharray: 3,3;
line-width: 1;
}



// ---------------------------------------------------------------------
// Cities, towns, villages, etc

// City labels with dots for low zoom levels.
// The separate attachment keeps the size of the XML down.
#place_label::citydots[type='city'][zoom>=4][zoom<=7][localrank<=3] {
// explicitly defining all the `ldir` values wer'e going
// to use shaves a bit off the final project.xml size
[ldir='N'],[ldir='S'],[ldir='E'],[ldir='W'],
[ldir='NE'],[ldir='SE'],[ldir='SW'],[ldir='NW'] {
shield-file: url("shield/dot.svg");
shield-transform:scale(0.3,0.3);
shield-unlock-image: true;
shield-name: @name;
shield-size: 12;
shield-face-name: @sans;
shield-placement: point;
shield-fill: @text;
shield-halo-fill: @fill1;
shield-halo-radius: 2;
shield-halo-rasterizer: fast;
shield-margin:30;
shield-opacity:0.5;
[zoom=7] { shield-size: 14; }

[ldir='E'] { shield-text-dx: 5; }
[ldir='W'] { shield-text-dx: -5; }
[ldir='N'] { shield-text-dy: -5; }
[ldir='S'] { shield-text-dy: 5; }
[ldir='NE'] { shield-text-dx: 4; shield-text-dy: -4; }
[ldir='SE'] { shield-text-dx: 4; shield-text-dy: 4; }
[ldir='SW'] { shield-text-dx: -4; shield-text-dy: 4; }
[ldir='NW'] { shield-text-dx: -4; shield-text-dy: -4; }
}
}

#place_label[zoom>=8][localrank<=3] {
text-name: @name;
text-face-name: @sans;
text-wrap-width: 80;
text-wrap-before: true;
text-fill: @text;
text-halo-fill: @fill1;
text-halo-radius: 2;
text-halo-rasterizer: fast;
text-size: 10;
text-line-spacing:-2;
text-margin:25;

// Cities
[type='city'][zoom>=8][zoom<=15] {
text-face-name: @sans_md;
text-size: 15;
text-line-spacing:-7;

[zoom>=10] {
text-size: 17;
text-wrap-width: 140;
}
[zoom>=12] {
text-size: 20;
text-wrap-width: 180;
}
// Hide at largest scales:
[zoom>=16] { text-name: "''"; }
}

// Towns
[type='town'] {
text-size: 12;
text-halo-fill: @fill1;
text-halo-radius: 1.9;
[zoom>=12] { text-size: 12; }
[zoom>=14] { text-size: 16; }
[zoom>=16] { text-size: 22; }
// Hide at largest scales:
[zoom>=18] { text-name: "''"; }
}

// Villages and suburbs
[type='village'] {
text-size: 12;
text-halo-fill: @fill1;
text-halo-radius: 1.9;
[zoom>=12] { text-size: 10; }
[zoom>=14] { text-size: 14; }
[zoom>=16] { text-size: 18; }
}
[type='hamlet'],
[type='suburb'],
[type='neighbourhood'] {
text-fill: @fill3;
text-face-name: @sans_it;
text-transform: none;
text-margin:50;
text-halo-radius: 2;
text-character-spacing: 0.5;
text-size: 12;
[zoom>=14] { text-size: 14; }
[zoom>=15] { text-size: 16; text-character-spacing: 1; }
[zoom>=16] { text-size: 18; text-character-spacing: 2; }
[zoom>=18] { text-size: 24; text-character-spacing: 3; }
}
}

// Road labels
#road_label[len>2000][zoom>=12],
#road_label[len>1000][zoom>=15] {
text-placement: line;
text-face-name: @sans;
text-name: @name;
text-size: 9;
text-min-distance: 100;
text-halo-fill: @land;
text-halo-radius: 1;
text-fill: @text;
[zoom>=17] { text-size: 11;}
}

// Water labels
#marine_label {
text-name: @name;
text-face-name: @sans_bd;
text-fill: @text;
text-size: 12;
text-halo-fill: @water;
text-halo-radius: 1;
text-wrap-before: true;
text-wrap-width: 90;
[labelrank=1] {
text-size: 18;
}
}

#water_label {
[zoom<=13],
[zoom>=14][area>500000],
[zoom>=16][area>10000],
[zoom>=17] {
text-name: @name;
text-face-name: @sans_bd;
text-fill: @text;
text-size: 12;
text-halo-fill: @water;
text-halo-radius: 1;
text-wrap-width: 60;
text-wrap-before: true;
text-avoid-edges: true;
}
}

#waterway_label[type='river'][zoom>=13],
#waterway_label[type='canal'][zoom>=14],
#waterway_label[type='stream'][zoom>=15] {
text-name: @name;
text-face-name: @sans_bd;
text-fill: @text;
text-min-distance: 60;
text-size: 10;
text-halo-fill: @water;
text-halo-radius: 1;
text-wrap-before: true;
text-avoid-edges: true;
text-placement: line;
}

// Place labels
#poi_label[maki='park'][scalerank<=2],
#poi_label[maki='airport'][scalerank<=2],
#poi_label[maki='airfield'][scalerank<=2],
#poi_label[maki='rail'][scalerank<=2],
#poi_label[maki='school'][scalerank<=2],
#poi_label[scalerank='hospital'][scalerank<=2] {
text-face-name: @sans_bdit;
text-allow-overlap: false;
text-name: @name;
text-size: 9;
text-line-spacing: -2;
text-min-distance: 50;
text-wrap-width: 60;
text-halo-fill: @fill1;
text-halo-radius: 1;
text-fill: @text;
}
6 changes: 6 additions & 0 deletions package.json
@@ -0,0 +1,6 @@
{
"name": "mapbox-studio-light",
"version": "1.1.0",
"description": "Default style project for Mapbox Studio.",
"main": "./package.json"
}

0 comments on commit 3a53d21

Please sign in to comment.