allow different z-indexes for shields

This commit is contained in:
Komzpa 2012-03-18 00:01:33 +03:00
parent c4e3a07b58
commit f97a290224

View file

@ -658,7 +658,7 @@ if options.renderer == "mapnik":
collhere = set()
for entry in zsheet[zindex]:
if entry["type"] in entry_types:#, "node", "line", "point"):
if "text" in entry["style"] and entry["style"].get("text-position","center")==placement:
if ("text" in entry["style"] or "shield-text" in entry["style"]) and entry["style"].get("text-position","center")==placement:
csb = entry["style"].get("collision-sort-by",None)
cso = entry["style"].get("collision-sort-order","desc")
collhere.add((csb,cso))