Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
327 lines (309 sloc) 8.211 kB
@water-text: #6699cc;
@glacier: #ddecec;
@glacier-line: #9cf;
#water-areas {
[natural = 'glacier']::natural {
[zoom >= 6] {
line-dasharray: 4,2;
line-width: 1.5;
line-color: @glacier-line;
polygon-fill: @glacier;
[zoom >= 8] {
polygon-pattern-file: url('symbols/glacier.png');
}
}
}
[waterway = 'dock'],
[waterway = 'canal'] {
[zoom >= 9]::waterway {
polygon-fill: @water-color;
[way_pixels >= 4] {
polygon-gamma: 0.75;
}
[way_pixels >= 64] {
polygon-gamma: 0.6;
}
}
}
[landuse = 'basin'][zoom >= 7]::landuse {
polygon-fill: @water-color;
[way_pixels >= 4] {
polygon-gamma: 0.75;
}
[way_pixels >= 64] {
polygon-gamma: 0.6;
}
}
[natural = 'water']::natural,
[landuse = 'reservoir']::landuse,
[waterway = 'riverbank']::waterway {
[zoom >= 6] {
polygon-fill: @water-color;
[way_pixels >= 4] {
polygon-gamma: 0.75;
}
[way_pixels >= 64] {
polygon-gamma: 0.6;
}
}
}
}
#water-areas-overlay {
[zoom >= 10] {
polygon-pattern-file: url('symbols/wetland.png');
polygon-pattern-alignment: global;
}
[zoom >= 14] {
[int_wetland = 'marsh'],
[int_wetland = 'saltmarsh'],
[int_wetland = 'wet_meadow'],
[int_wetland = 'fen'] {
polygon-pattern-file: url('symbols/wetland_marsh.png');
polygon-pattern-alignment: global;
}
[int_wetland = 'reedbed'] {
polygon-pattern-file: url('symbols/wetland_reed.png');
polygon-pattern-alignment: global;
}
[int_wetland = 'mangrove'] {
polygon-pattern-file: url('symbols/wetland_mangrove.png');
polygon-pattern-alignment: global;
}
[int_wetland = 'swamp'] {
polygon-pattern-file: url('symbols/wetland_swamp.png');
polygon-pattern-alignment: global;
}
[int_wetland = 'bog'],
[int_wetland = 'string_bog'] {
polygon-pattern-file: url('symbols/wetland_bog.png');
polygon-pattern-alignment: global;
}
}
}
#water-lines-casing {
[waterway = 'stream'],
[waterway = 'ditch'],
[waterway = 'drain'] {
[int_tunnel = 'no'] {
[zoom >= 13] {
line-width: 2.5;
line-color: white;
[waterway = 'stream'][zoom >= 15] {
line-width: 3.5;
}
[intermittent = 'yes'] {
line-dasharray: 4,3;
line-cap: butt;
line-join: round;
line-clip: false;
}
}
}
}
}
#water-lines-low-zoom {
[waterway = 'river'][zoom >= 8][zoom < 12] {
[intermittent = 'yes'] {
line-dasharray: 8,4;
line-cap: butt;
line-join: round;
line-clip: false;
}
line-color: @water-color;
line-width: 0.7;
[zoom >= 9] { line-width: 1.2; }
[zoom >= 10] { line-width: 1.6; }
}
}
.water-lines {
[waterway = 'canal'][zoom >= 12],
[waterway = 'river'][zoom >= 12],
[waterway = 'wadi'][zoom >= 13] {
[bridge = 'yes'] {
[zoom >= 14] {
bridgecasing/line-color: black;
bridgecasing/line-join: round;
bridgecasing/line-width: 6;
[zoom >= 15] { bridgecasing/line-width: 7; }
[zoom >= 17] { bridgecasing/line-width: 11; }
[zoom >= 18] { bridgecasing/line-width: 13; }
}
}
[intermittent = 'yes'],
[waterway = 'wadi'] {
[bridge = 'yes'][zoom >= 14] {
bridgefill/line-color: white;
bridgefill/line-join: round;
bridgefill/line-width: 4;
[zoom >= 15] { bridgefill/line-width: 5; }
[zoom >= 17] { bridgefill/line-width: 9; }
[zoom >= 18] { bridgefill/line-width: 11; }
}
line-dasharray: 4,3;
line-cap: butt;
line-join: round;
line-clip: false;
}
line-color: @water-color;
line-width: 2;
[zoom >= 13] { line-width: 3; }
[zoom >= 14] { line-width: 5; }
[zoom >= 15] { line-width: 6; }
[zoom >= 17] { line-width: 10; }
[zoom >= 18] { line-width: 12; }
line-cap: round;
line-join: round;
[int_tunnel = 'yes'] {
line-dasharray: 4,2;
line-cap: butt;
line-join: miter;
a/line-color: #f3f7f7;
a/line-width: 1;
[zoom >= 14] { a/line-width: 2; }
[zoom >= 15] { a/line-width: 3; }
[zoom >= 17] { a/line-width: 7; }
[zoom >= 18] { a/line-width: 8; }
}
}
[waterway = 'stream'],
[waterway = 'ditch'],
[waterway = 'drain'] {
[zoom >= 13] {
[bridge = 'yes'] {
[zoom >= 14] {
bridgecasing/line-color: black;
bridgecasing/line-join: round;
bridgecasing/line-width: 4;
[waterway = 'stream'][zoom >= 15] { bridgecasing/line-width: 4; }
bridgeglow/line-color: white;
bridgeglow/line-join: round;
bridgeglow/line-width: 3;
[waterway = 'stream'][zoom >= 15] { bridgeglow/line-width: 3; }
}
}
[intermittent = 'yes'] {
line-dasharray: 4,3;
line-cap: butt;
line-join: round;
line-clip: false;
}
line-width: 2;
line-color: @water-color;
[waterway = 'stream'][zoom >= 15] {
line-width: 3;
}
[int_tunnel = 'yes'][zoom >= 15] {
line-width: 3.5;
[waterway = 'stream'] { line-width: 4.5; }
line-dasharray: 4,2;
a/line-width: 1;
[waterway = 'stream'] { a/line-width: 2; }
a/line-color: #f3f7f7;
}
}
}
[waterway = 'derelict_canal'][zoom >= 12] {
line-width: 1.5;
line-color: #b5e4d0;
line-dasharray: 4,4;
line-opacity: 0.5;
line-join: round;
line-cap: round;
[zoom >= 13] {
line-width: 2.5;
line-dasharray: 4,6;
}
[zoom >= 14] {
line-width: 4.5;
line-dasharray: 4,8;
}
}
}
#water-lines-text {
[lock != 'yes'] {
[waterway = 'river'][zoom >= 13] {
text-name: "[name]";
text-face-name: @oblique-fonts;
text-placement: line;
text-fill: @water-text;
text-spacing: 400;
text-size: 10;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
[zoom >= 14] { text-size: 12; }
[int_tunnel = 'yes'] { text-min-distance: 200; }
}
[waterway = 'canal'][zoom >= 13][zoom < 14] {
text-name: "[name]";
text-face-name: @oblique-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-size: 10;
text-placement: line;
text-fill: @water-text;
}
[waterway = 'stream'][zoom >= 15] {
text-name: "[name]";
text-size: 10;
text-face-name: @oblique-fonts;
text-fill: @water-text;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-spacing: 600;
text-placement: line;
text-dy: 8;
}
[waterway = 'drain'],
[waterway = 'ditch'] {
[zoom >= 15] {
text-name: "[name]";
text-face-name: @oblique-fonts;
text-size: 10;
text-fill: @water-text;
text-spacing: 600;
text-placement: line;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
}
}
[waterway = 'canal'][zoom >= 14] {
text-name: "[name]";
text-size: 10;
text-fill: @water-text;
text-placement: line;
text-face-name: @oblique-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
}
[waterway = 'derelict_canal'][zoom >= 13] {
text-name: "[name]";
text-size: 10;
text-fill: #80d1ae;
text-face-name: @oblique-fonts;
text-placement: line;
text-spacing: 600;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
[zoom >= 14] {
text-size: 12;
}
}
}
}
.text[zoom >= 10] {
[feature = 'natural_water'],
[feature = 'landuse_reservoir'],
[feature = 'landuse_basin'] {
[zoom >= 10][way_pixels > 3000],
[zoom >= 17] {
text-name: "[name]";
text-size: 12;
text-fill: @water-text;
text-face-name: @oblique-fonts;
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-wrap-width: @standard-wrap-width;
text-placement: interior;
}
}
}
Jump to Line
Something went wrong with that request. Please try again.