From f97a290224e516a32bf113607caf81172cbbf1fc Mon Sep 17 00:00:00 2001 From: Komzpa Date: Sun, 18 Mar 2012 00:01:33 +0300 Subject: [PATCH] allow different z-indexes for shields --- src/komap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/komap.py b/src/komap.py index e0c9a32..0457fb4 100644 --- a/src/komap.py +++ b/src/komap.py @@ -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))