From 5494be9df1c97dcf138f954c9ec857af740222ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kom=D1=8Fpa?= Date: Tue, 6 Jul 2010 17:51:49 +0300 Subject: [PATCH] Osmosnimki dejavu style --- src/styles/osmosnimki-maps.mapcss | 64 +++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 src/styles/osmosnimki-maps.mapcss diff --git a/src/styles/osmosnimki-maps.mapcss b/src/styles/osmosnimki-maps.mapcss new file mode 100644 index 0000000..00bf739 --- /dev/null +++ b/src/styles/osmosnimki-maps.mapcss @@ -0,0 +1,64 @@ +/* + Deja Vu MapCSS styles + Osmosnimki maps style +*/ + +canvas {fill-color: #FAF8F8} + +way[highway] + {width: eval( any( metric(tag("width")), metric ( num(tag("lanes")) * 4), metric("7m"))); + color:#ffffff; + text: name; text-position: line; text-color:#000000;text-halo-radius:2;text-halo-color:#ffffff; + casing-color: #D29D39;} + +way[highway=primary] + {z-index:1; width:9; color: #FCE57D; casing-width:1; casing-color: #CBB48B; } + {z-index:2; width:1; color: #FBCB7C;} + + + + +way[highway][area=yes]{fill-color: #ffffff;width:0} + +/* With this eval, if bridge is applied to invisible line, no bridge renders */ +way[bridge=yes] {casing-width:eval(min(3, num(prop("width"))/2 ));} + + +way[natural=forest], +way[natural=wood], +way[landuse=forest], +way[landuse=wood] + {fill-color: #C5E9A5;} + +way[landuse=grass], +way[natural=grass]{fill-color: #B9DE96;} + + +way[landuse=garages] +{fill-color: #d2e8ed; color: #cad4e1} + +way[waterway=riverbank], +way[natural=water] {fill-color: #C4D4F5; color: #7281A0} + +way[waterway=river], +way[waterway=stream]{color: #C4D4F5; casing-width: 1; casing-color: #7281A0 } + +way[leisure=stadium]{fill-color: #d0ffff; casing-width: 2; casing-color: #00ccff;z-index:10;} + +way[railway=tram]{width: eval( any( metric(tag("width")), metric("1.52m")));color: #ffffff; casing-color: #000000} + {width: eval( metric("2.7m")); color: #000000; dashes: 1,10; z-index:1; object-id: "shpala"} + +/*way[landuse=industrial] {fill-color: #855}*/ +way[landuse=military] {fill-color: pink} + + +way|z12-[building] { + width: .5; + text: addr:housenumber; text-halo-radius:1; text-position: center; + + fill-color: #E7CCB4; + color: #D29D39; +} +way|z12-[building != yes] { + fill-color: #D8D1D1; +} \ No newline at end of file