From 1800ad29e17d7c199a971b447d47a64dd7819d22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kom=D1=8Fpa?= Date: Tue, 29 Jun 2010 18:35:56 +0300 Subject: [PATCH] OpenStreetInfo MapCSS style --- src/styles/openstreetinfo.mapcss | 58 ++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 src/styles/openstreetinfo.mapcss diff --git a/src/styles/openstreetinfo.mapcss b/src/styles/openstreetinfo.mapcss new file mode 100644 index 0000000..ea11d20 --- /dev/null +++ b/src/styles/openstreetinfo.mapcss @@ -0,0 +1,58 @@ +/* + Deja Vu MapCSS styles + OpenStreetInfo style +*/ + +canvas {fill-color: #ffffc8} + +way[landuse=residential] + {fill-color: #daf4a4; color:#b8cd14 } + +way[highway] + {width: eval( any( metric(tag("width")), metric ( num(tag("lanes")) * 2.4), metric("2m"))); + color:#ffffff; + text: name; text-position: line; text-halo-radius:2; casing-width: 1} + +way[highway][area=yes]{fill-color: #ffffff;width:0} + +way[natural=forest], +way[natural=wood], +way[landuse=forest], +way[landuse=wood] + {fill-color: #68ec80; color: #45a56b} + +way[landuse=grass], +way[natural=grass]{fill-color: #e7ffd0; color: #45a56b} + + +way[landuse=garages] +{fill-color: #d2e8ed; color: #cad4e1} + +way[waterway=riverbank], +way[natural=water] {fill-color: #5ba7ff; color: #0000a0} + +way[waterway=river], +way[waterway=stream]{color: #5ba7ff;casing-width: 1; casing-color: #0000a0} + +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[amenity=parking] {fill-color: #d2e8ed;color:cad4e1} + +way[bridge=yes] {casing-width:10} + +way[building] { + width: .5; + text: addr:housenumber; text-halo-radius:1; text-position: center; + + fill-color: #EDEDED; + extrude: eval( any( metric(tag("height")), metric ( num(tag("building:levels")) * 3), metric("1m"))); + extrude-face-color: #e2e2e2; + extrude-edge-width: 1; + extrude-edge-color: #404040; +} \ No newline at end of file