Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
664 lines (596 sloc) 17.948 kB
// --- Parks, woods, other green things ---
@forest: #a0cf85;
@grass: #cfeca8; // also meadow, common, garden, village_green, conservation
@golf_course: #b5e3b5;
@park: #cdf7c9; // also recreation_ground
@wood: #aed1a0;
@vineyard: #b3e2a8;
@grassland: #c6e4b4;
@scrub: #b5e3b5;
// --- sports ---
@stadium: #3c9; // also sports_centre
@track: #74dcba;
@pitch: #8ad3af;
// --- "base" landuses ---
@residential: #E1E1E1; // Lch(89,0,0)
@residential-line: #B9B9B9; // Lch(75,0,0)
@retail: #FFD6D1; // Lch(89,16,30)
@retail-line: #D99C95; // Lch(70,25,30)
@commercial: #F2DAD9; // Lch(89,8.5,25)
@commercial-line: #D1B2B0; // Lch(75,12,25)
@industrial: #EBDBE8; // Lch(89,9,330)
@industrial-line: #C6B3C3; // Lch(75,11,330)
@railway: @industrial;
@railway-line: @industrial-line;
@farmland: #EDDDC9; // Lch(89,12,80) (Also used for farm)
@farmland-line: #C8B69E; // Lch(75,15,80)
@farmyard: #EFD6B5; // Lch(87,20,80)
@farmyard-line: #D1B48C; // Lch(75,25,80)
// --- Other ----
@aerodrome: #e9e7e2;
@allotments: #e5c7ab;
@apron: #e9d1ff;
@bare_ground: #eee5dc;
@campsite: #def6c0; // also caravan_site, picnic_site
@cemetery: #aacbaf; // also grave_yard
@construction: #b6b592;
@danger_area: pink;
@garages: #dfddce;
@heath: #d6d99f;
@mud: rgba(203,177,154,0.3); // produces #e6dcd1 over @land
@parking: #f7efb7;
@place_of_worship: #cdccc9;
@place_of_worship_outline: #111;
@playground: #ccfff1;
@power: #bbb;
@rest_area: #efc8c8; // also services
@sand: #f5e9c6;
@school: #f0f0d8; // also university, college, hospital, kindergarten
@station: #d4aaaa;
@orchard: #9ed88f;
@tourism: #734a08;
@quarry: #c5c3c3;
@military: #f55;
@beach: #fff1ba;
#landcover-low-zoom[zoom < 10],
#landcover[zoom >= 10] {
::first {
[feature = 'wetland_mud'],
[feature = 'wetland_tidalflat'] {
[zoom >= 9] {
polygon-fill: @mud;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
}
}
[feature = 'leisure_swimming_pool'][zoom >= 14] {
polygon-fill: @water-color;
line-color: saturate(darken(@water-color, 40%), 30%);
line-width: 0.5;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[feature = 'leisure_playground'][zoom >= 13] {
polygon-fill: @playground;
line-color: saturate(darken(@playground, 60%), 30%);
line-width: 0.3;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[feature = 'tourism_camp_site'],
[feature = 'tourism_caravan_site'],
[feature = 'tourism_picnic_site'] {
[zoom >= 10] {
polygon-fill: @campsite;
line-color: saturate(darken(@campsite, 60%), 30%);
line-width: 0.3;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
}
[feature = 'landuse_quarry'][zoom >= 10] {
polygon-fill: @quarry;
polygon-pattern-file: url('symbols/quarry.png');
line-width: 0.5;
line-color: grey;
[way_pixels >= 4] { polygon-pattern-gamma: 0.75; }
[way_pixels >= 64] { polygon-pattern-gamma: 0.3; }
}
[feature = 'landuse_vineyard'] {
[zoom >= 10] {
polygon-fill: @vineyard;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[zoom >= 13] {
polygon-pattern-file: url('symbols/vineyard.png');
[way_pixels >= 4] { polygon-pattern-gamma: 0.75; }
[way_pixels >= 64] { polygon-pattern-gamma: 0.3; }
}
}
[feature = 'landuse_orchard'][zoom >= 10] {
polygon-fill: @orchard;
polygon-pattern-file: url('symbols/orchard.png');
polygon-pattern-alignment: global;
[way_pixels >= 4] { polygon-pattern-gamma: 0.75; }
[way_pixels >= 64] { polygon-pattern-gamma: 0.3; }
}
[feature = 'landuse_cemetery'],
[feature = 'amenity_grave_yard'] {
[zoom >= 10] {
polygon-fill: @cemetery;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[zoom >= 14] {
[religion = 'jewish'] { polygon-pattern-file: url('symbols/grave_yard_jewish.png'); }
[religion = 'christian'] { polygon-pattern-file: url('symbols/grave_yard_christian.png'); }
[religion = 'INT-generic'] { polygon-pattern-file: url('symbols/grave_yard_generic.png'); }
[religion = 'jewish'],
[religion = 'christian'],
[religion = 'INT-generic'] {
[way_pixels >= 4] { polygon-pattern-gamma: 0.75; }
[way_pixels >= 64] { polygon-pattern-gamma: 0.3; }
}
}
}
[feature = 'amenity_place_of_worship'] {
polygon-fill: @place_of_worship;
polygon-clip: false;
[zoom >= 15] {
line-color: @place_of_worship_outline;
line-width: 0.3;
line-clip: false;
}
}
[feature = 'amenity_prison'][zoom >= 10] {
polygon-pattern-file: url('symbols/grey_vertical_hatch.png');
polygon-pattern-alignment: global;
line-color: #888;
line-width: 3;
line-opacity: 0.329;
}
[feature = 'landuse_residential'][zoom >= 10] {
polygon-fill: @residential;
[zoom >= 16] {
line-width: .5;
line-color: @residential-line;
[name != ''] {
line-width: 0.7;
}
}
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[feature = 'landuse_garages'][zoom >= 13] {
polygon-fill: @garages;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[feature = 'military_danger_area'] {
[zoom >= 9][zoom < 11] {
polygon-fill: @danger_area;
polygon-opacity: 0.3;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[zoom >= 11] {
polygon-pattern-file: url('symbols/danger.png');
[way_pixels >= 4] { polygon-pattern-gamma: 0.75; }
[way_pixels >= 64] { polygon-pattern-gamma: 0.3; }
}
}
[feature = 'landuse_meadow'],
[feature = 'landuse_grass'] {
[zoom >= 10] {
polygon-fill: @grass;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
}
[feature = 'leisure_park'],
[feature = 'leisure_recreation_ground'] {
[zoom >= 10] {
polygon-fill: @park;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
}
[feature = 'leisure_common'][zoom >= 10] {
polygon-fill: @grass;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[feature = 'leisure_garden'][zoom >= 10] {
polygon-fill: @grass;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[feature = 'leisure_golf_course'][zoom >= 10],
[feature = 'leisure_miniature_golf'][zoom >= 15] {
polygon-fill: @golf_course;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[feature = 'landuse_allotments'] {
[zoom >= 10][zoom < 14] {
polygon-fill: @allotments;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[zoom >= 14] {
polygon-pattern-file: url('symbols/allotments.png');
polygon-pattern-alignment: global;
[way_pixels >= 4] { polygon-pattern-gamma: 0.75; }
[way_pixels >= 64] { polygon-pattern-gamma: 0.3; }
}
}
[feature = 'landuse_forest'] {
[zoom >= 8] {
polygon-fill: @forest;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[zoom >= 14] {
polygon-pattern-file: url('symbols/forest.png');
[way_pixels >= 4] { polygon-pattern-gamma: 0.75; }
[way_pixels >= 64] { polygon-pattern-gamma: 0.3; }
}
}
[feature = 'landuse_farmyard'][zoom >= 10] {
polygon-fill: @farmyard;
[zoom >= 16] {
line-width: 0.5;
line-color: @farmyard-line;
[name != ''] {
line-width: 0.7;
}
}
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[feature = 'landuse_farm'],
[feature = 'landuse_farmland'],
[feature = 'landuse_greenhouse_horticulture'] {
[zoom >= 10] {
polygon-fill: @farmland;
[zoom >= 16] {
line-width: .5;
line-color: @farmland-line;
}
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
}
[feature = 'landuse_recreation_ground'],
[feature = 'landuse_conservation'] {
[zoom >= 10] {
polygon-fill: @grass;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
}
[feature = 'landuse_village_green'][zoom >= 10] {
polygon-fill: @grass;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[feature = 'landuse_retail'][zoom >= 10] {
polygon-fill: @retail;
[zoom >= 16] {
line-width: 0.5;
line-color: @retail-line;
[name != ''] {
line-width: 0.7;
}
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
}
[feature = 'landuse_industrial'][zoom >= 10] {
polygon-fill: @industrial;
[zoom >= 16] {
line-width: .5;
line-color: @industrial-line;
[name != ''] {
line-width: 0.7;
}
}
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[feature = 'landuse_railway'][zoom >= 10] {
polygon-fill: @railway;
[zoom >= 16][name != ''] {
line-width: 0.7;
line-color: @railway-line;
}
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[feature = 'power_station'][zoom >= 10],
[feature = 'power_generator'][zoom >= 10],
[feature = 'power_sub_station'][zoom >= 13],
[feature = 'power_substation'][zoom >= 13] {
polygon-fill: @power;
[zoom >= 12] {
line-width: 0.4;
line-color: darken(@power, 40%);
}
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[feature = 'landuse_commercial'][zoom >= 10] {
polygon-fill: @commercial;
[zoom >= 16] {
line-width: 0.5;
line-color: @commercial-line;
[name != ''] {
line-width: 0.7;
}
}
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[feature = 'landuse_brownfield'],
[feature = 'landuse_landfill'],
[feature = 'landuse_construction'] {
[zoom >= 10] {
polygon-fill: @construction;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
}
[feature = 'natural_wood'] {
[zoom >= 8] {
polygon-fill: @wood;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
}
[feature = 'natural_bare_rock'][zoom >= 9] {
polygon-fill: @bare_ground;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
[zoom >= 13] {
polygon-pattern-file: url('symbols/rock_overlay.png');
[way_pixels >= 4] { polygon-pattern-gamma: 0.75; }
[way_pixels >= 64] { polygon-pattern-gamma: 0.3; }
}
}
[feature = 'natural_scree'],
[feature = 'natural_shingle'] {
[zoom >= 9] {
polygon-fill: @bare_ground;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
[zoom >= 13] {
polygon-pattern-file: url('symbols/scree_overlay.png');
[way_pixels >= 4] { polygon-pattern-gamma: 0.75; }
[way_pixels >= 64] { polygon-pattern-gamma: 0.3; }
}
}
}
[feature = 'natural_sand'][zoom >= 9] {
polygon-fill: @sand;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[feature = 'natural_heath'][zoom >= 10] {
polygon-fill: @heath;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[feature = 'natural_grassland'][zoom >= 10] {
polygon-fill: @grassland;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[feature = 'natural_scrub'] {
[zoom >= 10] {
polygon-fill: @scrub;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[zoom >= 14] {
polygon-pattern-file: url('symbols/scrub.png');
[way_pixels >= 4] { polygon-pattern-gamma: 0.75; }
[way_pixels >= 64] { polygon-pattern-gamma: 0.3; }
}
}
[feature = 'wetland_swamp'][zoom >= 8] {
polygon-fill: @wood;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[feature = 'wetland_bog'],
[feature = 'wetland_string_bog'] {
[zoom >= 10] {
polygon-fill: @heath;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
}
[feature = 'wetland_wet_meadow'],
[feature = 'wetland_marsh'] {
[zoom >= 10] {
polygon-fill: @grass;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
}
[feature = 'amenity_university'],
[feature = 'amenity_college'],
[feature = 'amenity_school'],
[feature = 'amenity_hospital'],
[feature = 'amenity_kindergarten'] {
[zoom >= 10] {
polygon-fill: @school;
[zoom >= 12] {
line-width: 0.3;
line-color: brown;
}
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
}
[feature = 'amenity_parking'][zoom >= 10],
[feature = 'amenity_bicycle_parking'][zoom >= 10] {
polygon-fill: @parking;
[zoom >= 15] {
line-width: 0.3;
line-color: saturate(darken(@parking, 40%), 20%);
}
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[feature = 'aeroway_apron'][zoom >= 10] {
polygon-fill: @apron;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[feature = 'aeroway_aerodrome'][zoom >= 10] {
polygon-fill: @aerodrome;
line-width: 0.2;
line-color: saturate(darken(@aerodrome, 40%), 20%);
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[feature = 'natural_beach'][zoom >= 10] {
polygon-fill: @beach;
polygon-pattern-file: url('symbols/beach.png');
polygon-pattern-alignment: global;
[way_pixels >= 4] { polygon-pattern-gamma: 0.75; }
[way_pixels >= 64] { polygon-pattern-gamma: 0.3; }
}
[feature = 'highway_services'],
[feature = 'highway_rest_area'] {
[zoom >= 10] {
polygon-fill: @rest_area;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
}
[feature = 'railway_station'][zoom >= 10] {
polygon-fill: @station;
}
[feature = 'leisure_sports_centre'],
[feature = 'leisure_stadium'] {
[zoom >= 10] {
polygon-fill: @stadium;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
}
[feature = 'leisure_track'][zoom >= 10] {
polygon-fill: @track;
[zoom >= 15] {
line-width: 0.5;
line-color: saturate(darken(@track, 40%), 20%);
}
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[feature = 'leisure_pitch'][zoom >= 10] {
polygon-fill: @pitch;
[zoom >= 15] {
line-width: 0.5;
line-color: saturate(darken(@pitch, 40%), 20%);
}
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
}
/* man_made=cutline */
#landcover-line {
[zoom >= 14] {
line-width: 1.5;
line-join: round;
line-cap: square;
line-color: @land-color;
[zoom >= 16] {
line-width: 2;
}
}
}
#landuse-overlay {
[landuse = 'military'][zoom >= 10]::landuse {
polygon-pattern-file: url('symbols/military_red_hatch.png');
polygon-pattern-alignment: global;
line-color: @military;
line-width: 3;
line-opacity: 0.329;
}
}
#cliffs {
[natural = 'cliff'][zoom >= 13] {
line-pattern-file: url('symbols/cliff.png');
[zoom >= 15] {
line-pattern-file: url('symbols/cliff2.png');
}
}
[man_made = 'embankment'][zoom >= 15]::man_made {
line-pattern-file: url('symbols/embankment.png');
}
}
#area-barriers {
[zoom >= 16] {
line-color: #444;
line-width: 0.4;
[barrier = 'hedge'] {
polygon-fill: #aed1a0;
}
}
}
.barriers {
[zoom >= 16] {
line-width: 0.4;
line-color: #444;
}
[barrier = 'embankment'][zoom >= 14] {
line-width: 0.4;
line-color: #444;
}
[barrier = 'hedge'][zoom >= 16] {
line-width: 3;
line-color: #aed1a0;
}
}
#tourism-boundary {
[tourism = 'zoo'][zoom >= 10],
[tourism = 'theme_park'][zoom >= 10] {
a/line-width: 1;
a/line-offset: -0.5;
a/line-color: @tourism;
a/line-opacity: 0.5;
a/line-join: round;
a/line-cap: round;
b/line-width: 4;
b/line-offset: -2;
b/line-color: @tourism;
b/line-opacity: 0.3;
b/line-join: round;
b/line-cap: round;
[zoom >= 17] {
a/line-width: 2;
a/line-offset: -1;
b/line-width: 6;
b/line-offset: -3;
}
}
}
#text-line {
[feature = 'natural_cliff'][zoom >= 15],
[feature = 'man_made_embankment'][zoom >= 15] {
text-name: "[name]";
text-halo-radius: 1;
text-halo-fill: rgba(255,255,255,0.6);
text-fill: #999;
text-size: 10;
text-face-name: @book-fonts;
text-placement: line;
text-dy: 8;
text-spacing: 400;
}
}
Jump to Line
Something went wrong with that request. Please try again.