Style update

This commit is contained in:
Komzpa 2010-07-22 09:53:12 +03:00
parent ef24a42f52
commit cbcfcc5d50

View file

@ -1,7 +1,17 @@
/* ---------- DEFAULTS ---------- */
way {
text: name; text-position: line; text-halo-radius:2;
linecap: round;
opacity: eval( min(1, (num(any(tag("layer"),1))+5)/6) );
casing-opacity: eval( min(1, (num(any(tag("layer"),1))+5)/6) );
}
/* ---------- ROADS ---------- */
way[highway]
way|z16-[highway]
{width:
eval(
any(
@ -11,54 +21,53 @@ way[highway]
)
);
color:#ff0000;
text: name; text-position: line; text-halo-radius:2;
color:white;
casing-width: 1;
linecap: round;
opacity: eval( min(1, (num(any(tag("layer"),1))+5)/6) );
casing-opacity: eval( min(1, (num(any(tag("layer"),1))+5)/6) );
}
way[barrier]
{offset: 2}
way|z17-[barrier]
{casing-width:1; width: eval(metric(tag("width")))}
way[highway=residential],
way[highway=tertiary],
way[highway=living_street]
{width: eval(max(3, prop("width"))); color:#ffffff; z-index:10}
way|z-16[highway=residential],
way|z-16[highway=tertiary],
way|z-16[highway=living_street]
{width: 3; color:#ffffff; z-index:10;casing-width: 1;}
way[highway=service][living_street!=yes],
way[highway=unclassified]
{width: eval(max(2.5, prop("width"))); color:#ccc; z-index:9}
way|z15-16[highway=service][living_street!=yes],
way|z-16[highway=unclassified]
{width: 2.5; color:#ccc; z-index:9;casing-width: 1;}
way[highway=primary],
way[highway=motorway],
way[highway=trunk]
{width: eval(max(4, prop("width"))); color: #ff0; z-index: 11}
way|z-16[highway=primary],
way|z-16[highway=motorway],
way|z-16[highway=trunk]
{width: 4; color: #ff0; z-index: 11;casing-width: 1;}
way[highway=primary_link],
way[highway=motorway_link],
way[highway=trunk_link]
{width: 3.5; color: #ff0; z-index:11}
way|z-16[highway=primary_link],
way|z-16[highway=motorway_link],
way|z-16[highway=trunk_link]
{width: 3.5; color: #ff0; z-index:11;casing-width: 1;}
way[highway=secondary]
{width: eval(max(4, prop("width"))); color: orange; z-index:10}
way|z-16[highway=secondary]
{width: 4; color: orange; z-index:10;casing-width: 1;}
way[highway=track]
{width: eval(max(3, prop("width"))); color:#252; z-index:8}
way|z15-16[highway=track]
{width: 3; color:#252; z-index:8;casing-width: 1;}
way[living_street=yes]
{width: eval(max(2, prop("width"))); z-index: 0}
way|z15-16[living_street=yes]
{width: 2; z-index: 0;casing-width: 1;}
way[highway=footway],
way[highway=pedestrian],
way[highway=path]
{width:eval(max(2, prop("width"))); color:#655; casing-dashes: 3,1; z-index:3}
way|z15-16[highway=footway],
way|z15-16[highway=pedestrian],
way|z15-16[highway=path]
{width:eval(max(2, prop("width"))); color:#655; casing-dashes: 3,1; z-index:3;casing-width: 1;}
way[highway=steps]
{z-index:5; width:eval(max(2, prop("width"))); color:#655; casing-dashes: 1,0; linecap: butt;}
{z-index:6; width:eval(max(2, prop("width"))); dashes: eval("1," + str( max(num(any(num(metric(tag("step:length")))/100, num(metric("0.3m"))))-1, 1) ) ); color: black;}
way|z15-16[highway=steps]
{z-index:5; width:eval(max(2, prop("width"))); color:#655; casing-dashes: 1,0; linecap: butt;casing-width: 1;}
{z-index:6; width:eval(max(2, prop("width"))); dashes: eval("1," + str( max(num(any(num(metric(tag("step:length")))/100, num(metric("0.3m"))))-1, 1) ) ); color: black;casing-width: 1;}
way[highway][area=yes] {fill-color: eval(prop("color")); width:0}
@ -71,11 +80,6 @@ way[landuse=forest],
way[landuse=wood]
{fill-color: #020}
/* ---------- WATER ---------- */
way[waterway=riverbank],
way[landuse=reservoir],
@ -100,21 +104,21 @@ extrude-edge-color: #404040;
/* ---------- INDUSTRY ---------- */
way[power=line] {width: 1; color:#ccc}
way|z17-[power=line] {width: 1; color:#ccc}
way[landuse=industrial] {fill-color: #855}
way[landuse=military] {fill-color: pink}
way|z10-[landuse=industrial] {fill-color: #855}
way|z10-[landuse=military] {fill-color: pink}
/* ---------- GARDENS&co ---------- */
way[landuse=allotments] {fill-color: #452; opacity: 0.8}
way[landuse=field] {fill-color: #CCCC4E; opacity: 0.8}
way|z13-[landuse=allotments] {fill-color: #452; opacity: 0.8}
way|z10-[landuse=field] {fill-color: #CCCC4E; opacity: 0.8}
/* ---------- GRASS ---------- */
way[landuse=grass],
way[natural=grass]{fill-color: #cceecc; opacity: 0.8}
way|z16-[landuse=grass],
way|z16-[natural=grass]{fill-color: #cceecc; opacity: 0.8}
/* ---------- BORDERS ---------- */
way[boundary=administrative] {width: 2; color: red; dashes:5,3}
way[boundary=administrative] {width: 2; color: red; dashes:5,3; z-index:15}
way|z-17[boundary=administrative] {text: name; text-position:center}