add-mapbox-namespace
samanpwbb 2014-09-08 12:26:28 -04:00
commit 8edf4e67c6
46 zmienionych plików z 5086 dodań i 0 usunięć

BIN
.thumb.png 100644

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 48 KiB

BIN
_gfx/forest.xcf 100644

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -0,0 +1,9 @@
#!/bin/bash
for i in ship_*.svg; do
for size in {200,300,400}; do
convert -background none $i -scale ${size}x${size} $i.png
pngquant 8 - < $i.png > ../img/$(basename $i .svg)_${size}.png
rm $i.png
done
done

BIN
_gfx/park.xcf 100644

Plik binarny nie jest wyświetlany.

219
_gfx/ship_banks.svg 100644

File diff suppressed because one or more lines are too long

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 162 KiB

65
_gfx/ship_bark.svg 100644

File diff suppressed because one or more lines are too long

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 533 KiB

File diff suppressed because one or more lines are too long

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 2.0 MiB

File diff suppressed because one or more lines are too long

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 184 KiB

274
_gfx/ship_chase.svg 100644

File diff suppressed because one or more lines are too long

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 205 KiB

File diff suppressed because one or more lines are too long

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 130 KiB

File diff suppressed because one or more lines are too long

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 412 KiB

File diff suppressed because one or more lines are too long

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 1.1 MiB

File diff suppressed because one or more lines are too long

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 366 KiB

73
_gfx/ship_junk.svg 100644

File diff suppressed because one or more lines are too long

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 605 KiB

184
_gfx/ship_ketch.svg 100644

File diff suppressed because one or more lines are too long

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 164 KiB

File diff suppressed because one or more lines are too long

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 286 KiB

File diff suppressed because one or more lines are too long

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 166 KiB

167
_gfx/ship_snow.svg 100644

File diff suppressed because one or more lines are too long

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 166 KiB

147
_gfx/ship_wreck.svg 100644

File diff suppressed because one or more lines are too long

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 153 KiB

BIN
_gfx/water_flat.xcf 100644

Plik binarny nie jest wyświetlany.

74
illustrations.mss 100644
Wyświetl plik

@ -0,0 +1,74 @@
#marine_label::illo {
comp-op:overlay;
marker-allow-overlap:true;
marker-ignore-placement:true;
marker-fill:rgba(0,0,0,0);
marker-width:0;
[name_en='North Atlantic Ocean'] {
marker-file:url(img/ship_ketch_300.png);
[zoom>=4] { marker-file:url(img/ship_ketch_400.png); }
}
[name_en='South Pacific Ocean'] {
marker-file:url(img/ship_bark_300.png);
[zoom>=4] { marker-file:url(img/ship_bark_400.png); }
}
[name_en='Indian Ocean'] {
marker-file:url(img/ship_bilander_300.png);
[zoom>=4] { marker-file:url(img/ship_bilander_400.png); }
}
[name_en='Philippine Sea'][zoom>=4] {
marker-file:url(img/ship_junk_200.png);
[zoom>=5] { marker-file:url(img/ship_junk_300.png); }
}
[name_en='Sargasso Sea'][zoom>=4] {
marker-file:url(img/ship_chase_200.png);
marker-transform:translate(-50,25);
[zoom>=5] {
marker-file:url(img/ship_chase_300.png);
marker-transform:translate(-200,50);
}
}
[name_en='North Sea'][zoom>=5] {
marker-file:url(img/ship_snow_200.png);
[zoom>=6] { marker-file:url(img/ship_snow_300.png); }
}
[name_en='Bay of Biscay'][zoom>=6] {
marker-file:url(img/ship_galleon_200.png);
[zoom>=7] { marker-file:url(img/ship_galleon_300.png); }
}
}
#area_label::ships {
marker-width:0;
marker-line-width:0;
marker-fill:rgba(0,0,0,0);
marker-allow-overlap:true;
marker-ignore-placement:true;
marker-comp-op:soft-light;
[name_en='Swansea Bay'],
[name_en='Maplin Sands'],
[name_en='Virgin Islands Coral Reef National Monument'] {
marker-file:url(img/ship_sloop_200.png);
marker-transform:translate(20,0);
}
[name_en='Sturgeon Bank Wildlife Management Area'] {
marker-file:url(img/ship_ketch_200.png);
marker-transform:translate(-60,0);
}
}
#water_label::ships {
marker-width:0;
marker-line-width:0;
marker-fill:rgba(0,0,0,0);
marker-allow-overlap:true;
marker-ignore-placement:true;
marker-comp-op:soft-light;
[name_en='Baie de Douarnenez'],
[name_en='Botany Bay'],
[name_en='Dublin Bay'],
[name_en='Lake Erie'],
[name_en='Mont Saint-Michel Bay'] {
marker-file:url(img/ship_frigate_200.png);
}
}

BIN
img/forest.png 100644

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 38 KiB

BIN
img/noise.png 100644

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 45 KiB

BIN
img/park.png 100644

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 46 KiB

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 12 KiB

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 19 KiB

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 14 KiB

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 23 KiB

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 6.0 KiB

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 12 KiB

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 6.9 KiB

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 6.4 KiB

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 12 KiB

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 7.4 KiB

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 14 KiB

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 5.3 KiB

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 10 KiB

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 17 KiB

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 5.4 KiB

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 5.7 KiB

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 11 KiB

BIN
img/water.png 100644

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 47 KiB

268
labels.mss 100644
Wyświetl plik

@ -0,0 +1,268 @@
#country_label[zoom>=3] {
text-name: @name_arrr;
text-face-name: 'Quintessential Regular';
text-wrap-width: 100;
text-wrap-before: true;
text-fill: #842;
text-size: 14;
text-halo-fill:fadeout(@land,40);
text-halo-radius:1.5;
[zoom>=3][scalerank=1],
[zoom>=4][scalerank=2],
[zoom>=5][scalerank=3],
[zoom>=6][scalerank>3] {
text-size: 18;
}
[zoom>=4][scalerank=1],
[zoom>=5][scalerank=2],
[zoom>=6][scalerank=3],
[zoom>=7][scalerank>3] {
text-size: 24;
}
}
#country_label_line {
line-color: #324;
line-opacity: 0.2;
}
#poi_label[type!='Aerodrome'][type!='Rail Station'] {
[zoom<14],
[zoom>=14][scalerank=1][localrank<=1],
[zoom>=15][scalerank<=2][localrank<=1],
[zoom>=16][scalerank<=3][localrank<=1],
[zoom>=17][localrank<=3] {
text-name: @name;
text-face-name: 'Gothic Ultra OT Regular';
text-line-spacing:-5;
text-fill: #431;
text-size: 24;
text-wrap-width: 100;
text-wrap-before: true;
text-halo-fill:fadeout(@land,40);
text-halo-radius:1.5;
}
}
#water_label {
[zoom<=13], // automatic area filtering @ low zooms
[zoom>=14][area>500000],
[zoom>=16][area>10000],
[zoom>=17] {
text-name: @name_arrr;
text-face-name: 'Gothic Ultra OT Regular';
text-line-spacing:-5;
text-fill: #245;
text-size: 24;
text-wrap-width: 100;
text-wrap-before: true;
}
}
#place_label[type='city'][zoom<=14] {
text-name: @name_arrr;
text-face-name: 'Quintessential Regular';
text-fill: #421;
text-halo-fill: @land;
text-halo-radius: 3;
text-size:14;
[zoom<=6] {
[scalerank>=0][scalerank<=1] { text-size: 22; }
[scalerank>=2][scalerank<=3] { text-size: 18; }
[scalerank>=4] { text-size: 16; }
}
[zoom=7] {
[scalerank>=0][scalerank<=1] { text-size: 24; }
[scalerank>=2][scalerank<=3] { text-size: 20; }
[scalerank>=4] { text-size: 18; }
}
[zoom=8] {
text-size: 16;
[scalerank>=0][scalerank<=1] { text-size: 28; }
[scalerank>=2][scalerank<=3] { text-size: 24; }
[scalerank>=4] { text-size: 20; }
}
[zoom=9] {
text-size: 20;
[scalerank>=0][scalerank<=1] { text-size: 30; }
[scalerank>=2][scalerank<=3] { text-size: 26; }
[scalerank>=4] { text-size: 24; }
}
[zoom=10] {
text-size: 22;
[scalerank>=0][scalerank<=1] { text-size: 32; }
[scalerank>=2][scalerank<=3] { text-size: 28; }
[scalerank>=4] { text-size: 26; }
}
[zoom=11] {
text-size: 26;
[scalerank>=0][scalerank<=1] { text-size: 34; }
[scalerank>=2][scalerank<=3] { text-size: 32; }
[scalerank>=4] { text-size: 30; }
}
[zoom=12] {
text-size: 28;
[scalerank<=3] { text-size: 36; }
[scalerank>=4] { text-size: 32; }
}
[zoom=13] {
text-size: 36;
}
[zoom=14] {
text-size: 40;
}
}
#place_label[type='town'] {
text-name: @name_arrr;
text-face-name: 'Quintessential Regular';
text-fill: #421;
text-halo-fill: @land;
text-halo-radius: 2;
text-min-distance: 20;
text-size: 16;
[zoom=9] { text-size: 17; }
[zoom=10] { text-size: 18; }
[zoom=11] { text-size: 20; }
[zoom=12] { text-size: 24; }
[zoom>=13] { text-size: 28; }
}
#place_label[type='village'],
#place_label[type='suburb'] {
text-name: @name_arrr;
text-face-name: 'Quintessential Regular';
text-fill: #532;
text-halo-fill: @land;
text-halo-radius: 2;
text-min-distance: 40;
text-size: 16;
[zoom=11] { text-size: 17; }
[zoom=12] { text-size: 18; }
[zoom=13] { text-size: 20; }
[zoom=14] { text-size: 24; }
[zoom>=15] { text-size: 28; }
}
#place_label[type='hamlet'],
#place_label[type='neighbourhood'] {
text-name: @name;
text-face-name: 'Quintessential Regular';
text-fill: #754;
text-halo-fill: @land;
text-halo-radius: 2;
text-wrap-before: true;
text-wrap-width: 80;
text-min-distance: 40;
text-size: 14;
[zoom=13] { text-size: 16; }
[zoom=14] { text-size: 18; }
[zoom=15] { text-size: 20; }
[zoom=16] { text-size: 24; }
[zoom>=17] { text-size: 28; }
}
#road_label[zoom>=12][class='motorway'],
#road_label[zoom>=14][class='main'],
#road_label[zoom>=16] {
text-name: @name;
text-face-name: 'Gothic Ultra OT Regular';
text-fill: #654;
text-placement: line;
text-avoid-edges: true;
text-halo-fill: @land;
text-halo-radius: 2;
text-size: 18;
}
@marine_text: #244;
@mts: 2;
#marine_label::text[zoom>=0][zoom<=7] {
text-name: @name_arrr;
text-face-name: 'Mutlu Ornamental';
text-fill: @marine_text;
text-wrap-width: 80;
text-wrap-before: true;
//text-comp-op: color-burn;
[placement = 'point'] {
text-placement: point;
}
[placement = 'line'] {
text-placement: line;
text-avoid-edges: true;
text-dy:10; // for Mutlu
}
[labelrank = 1] {
[zoom = 3] {
text-size: 30;
text-character-spacing: 8;
}
[zoom = 4] {
text-size: 35;
text-character-spacing: 16;
}
[zoom = 5] {
text-size: 40;
text-character-spacing: 20;
}
}
[labelrank = 2] {
[zoom = 3] {
text-size: 18;
text-character-spacing: 1;
}
[zoom = 4] {
text-size: 24;
text-character-spacing: 2;
}
[zoom = 5] {
text-size: 30;
text-character-spacing: 4;
}
[zoom = 6] {
text-size: 35;
text-character-spacing: 5;
}
}
[labelrank = 3] {
[zoom = 3] {
text-size: 14;
text-character-spacing: 2;
text-line-spacing: -10;
}
[zoom = 4] {
text-size: 18;
text-character-spacing: 3;
text-line-spacing: -10;
}
[zoom = 5] {
text-size: 25;
text-character-spacing: 4;
text-line-spacing: -10;
}
[zoom = 6] {
text-size: 18;
text-character-spacing: 5;
}
}
[labelrank = 4][zoom = 4],
[labelrank = 5][zoom = 5],
[labelrank = 6][zoom = 6] {
text-size: 12;
text-character-spacing: 2;
text-line-spacing: 6;
}
[labelrank = 4][zoom = 5],
[labelrank = 5][zoom = 6],
[labelrank = 6][zoom = 7] {
text-size: 14;
text-character-spacing: 3;
text-line-spacing: 8;
}
[labelrank = 4][zoom = 6],
[labelrank = 5][zoom = 7] {
text-size: 16;
text-character-spacing: 4;
text-line-spacing: 1;
}
}

1893
project.xml 100644

Plik diff jest za duży Load Diff

27
project.yml 100644
Wyświetl plik

@ -0,0 +1,27 @@
_prefs:
saveCenter: true
_properties: {}
attribution: "<a href='http://mapbox.com/about/maps' target='_blank'>Terms & Feedback</a>"
bounds:
- -180
- -85.0511
- 180
- 85.0511
center:
- -41.1328125
- 22.674847351188536
- 3
description: ''
format: "png8:m=h"
interactivity_layer: ''
maxzoom: 21
minzoom: 0
mtime: 1379437640975
name: Pirates Return
scale: 1
source: "mapbox:///mapbox.mapbox-streets-v4"
styles:
- style.mss
- labels.mss
- illustrations.mss
template: ''

174
style.mss 100644
Wyświetl plik

@ -0,0 +1,174 @@
// Languages: name (local), name_en, name_fr, name_es, name_de
@name: '[name_en]';
@name_arrr: "[name_en].replace('([Aa]r)','\1rr')";
// Common Colors //
@land: #fff8f0;
@water: #cdd;
@park: #cda;
Map {
background-color:@land;
background-image:url(img/noise.png);
}
// Political boundaries //
#admin[maritime=0][zoom>=3] {
line-join: round;
line-color: #478;
comp-op:multiply;
// Countries
[admin_level=2] {
line-cap:round;
line-width: 0.8;
[zoom>=6] { line-width: 2; }
[zoom>=8] { line-width: 4; }
[disputed=1] {
line-dasharray: 4,4;
line-cap:butt;
}
}
// States / Provices / Subregions
[admin_level>=3] {
line-width: 0.4;
line-dasharray: 10,3,3,3;
[zoom>=6] { line-width: 1; }
[zoom>=8] { line-width: 2; }
[zoom>=12] { line-width: 3; }
}
}
// Water Features //
@water_line:lighten(@water,8);
#water {
::b {
polygon-pattern-file:url(img/water.png);
polygon-pattern-alignment:global;
}
polygon-fill: mix(@water,#fff,50);
polygon-gamma: 0.6;
comp-op:multiply;
a/line-color:@water_line;
a/line-width:-0.4;
a/line-comp-op:multiply;
a/line-smooth:2;
b/line-color:@water_line;
b/line-width:-0.4;
b/line-comp-op:multiply;
b/line-smooth:4;
c/line-color:@water_line;
c/line-width:-0.4;
c/line-comp-op:multiply;
c/line-smooth:6;
[zoom>=12] {
a/line-width:0.8;
b/line-width:0.8;
c/line-width:0.8;
}
}
#waterway {
comp-op:multiply;
[type='river'],
[type='canal'] {
line-color: @water;
line-width: 0.5;
[zoom>=12] { line-width: 1; }
[zoom>=14] { line-width: 2; }
[zoom>=16] { line-width: 3; }
}
[type='stream'] {
line-color: @water;
line-width: 0.5;
[zoom>=14] { line-width: 1; }
[zoom>=16] { line-width: 2; }
[zoom>=18] { line-width: 3; }
}
}
// Landuse areas //
#landuse {
::glow {
comp-op:multiply;
[class='park'],[class='pitch'],[class='school'] {
line-width:2;
line-join:round;
[class='park'] { line-color:#ddb; }
[class='pitch'] { line-color:#eed; }
[class='school'] { line-color:#edb; }
}
}
::main[zoom>=0] {
comp-op:multiply;
[class='park'] {
polygon-pattern-file:url(img/park.png);
polygon-pattern-alignment:global;
}
[class='school'] {
polygon-fill:#ed9;
polygon-opacity:0.5;
}
}
::wood[class='wood'] {
line-color:#C3CFB4;
line-opacity:0.33;
line-width:3;
line-join:round;
polygon-pattern-file:url(img/forest.png);
polygon-pattern-alignment:global;
comp-op:multiply;
opacity:0.5;
}
}
// Buildings //
#building {
polygon-fill:#efe8d8;
comp-op:multiply;
[zoom>=15] {
line-color:#efe8d8 * 0.9;
[zoom>=15] { line-width:0.2; }
[zoom>=16] { line-width:0.4; }
[zoom>=17] { line-width:0.8; }
}
}
// Roads & Railways //
#tunnel { opacity: 0.5; }
#road,
#tunnel,
#bridge {
['mapnik::geometry_type'=2] {
line-width: 1;
line-color:#edc;
line-comp-op:multiply;
[class='motorway'],
[class='main'],
[class='motorway_link']{
line-color:#dba;
[zoom>=10] { line-width: 1; }
[zoom>=12] { line-width: 2; }
[zoom>=14] { line-width: 3; }
[zoom>=16] { line-width: 5; }
}
[class='street'],
[class='street_limited'] {
[zoom>=13] { line-width: 1.4; }
[zoom>=14] { line-width: 2; }
[zoom>=16] { line-width: 3; }
}
[class='street_limited'] { line-dasharray: 4,1; }
[class='path'] { line-dasharray: 3,2; }
}
}