Fix extruded objects ordering

This commit is contained in:
Komяpa 2010-06-29 21:59:34 +03:00
parent 1800ad29e1
commit 0f657ad3a8
2 changed files with 6 additions and 4 deletions

View file

@ -154,7 +154,9 @@ class RasterTile:
for layer in layers:
data = objs_by_layers[layer]
data.sort(lambda x,y:cmp(min([x1[1] for x1 in x[0].cs]), min([x1[1] for x1 in y[0].cs])))
# - fill polygons
for obj in data:
if "fill-color" in obj[1]: ## TODO: fill-image
color = obj[1]["fill-color"]

View file

@ -9,9 +9,9 @@ way[landuse=residential]
{fill-color: #daf4a4; color:#b8cd14 }
way[highway]
{width: eval( any( metric(tag("width")), metric ( num(tag("lanes")) * 2.4), metric("2m")));
{width: eval( any( metric(tag("width")), metric ( num(tag("lanes")) * 2.4), metric("7m")));
color:#ffffff;
text: name; text-position: line; text-halo-radius:2; casing-width: 1}
text: name; text-position: line; text-color:#0000ff;text-halo-radius:2;text-halo-color:#ffffc8; casing-width: 1}
way[highway][area=yes]{fill-color: #ffffff;width:0}
@ -39,7 +39,7 @@ way[leisure=stadium]{fill-color: #d0ffff; casing-width: 2; casing-color: #00ccff
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=industrial] {fill-color: #855}*/
way[landuse=military] {fill-color: pink}
way[amenity=parking] {fill-color: #d2e8ed;color:cad4e1}
@ -51,7 +51,7 @@ way[building] {
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: eval( any( metric(tag("height")), metric ( num(tag("building:levels")) * 3), metric("15m")));
extrude-face-color: #e2e2e2;
extrude-edge-width: 1;
extrude-edge-color: #404040;