diff --git a/src/libkomapnik.py b/src/libkomapnik.py index 5592253..dd6fdba 100644 --- a/src/libkomapnik.py +++ b/src/libkomapnik.py @@ -82,7 +82,7 @@ def xml_pointsymbolizer(path="", width="", height="", opacity=1, overlap="false" if height: height =' height="%s" '%height return """ - """\ + """\ %(os.path.join(icons_path, path), width, height, opacity, overlap) @@ -146,8 +146,8 @@ def xml_textsymbolizer( dy = 0 return """ - - """%(text,face,int(float(size)),color,halo_color,halo_radius,placement,dx,dy,overlap,wrap_width,distance,align,opacity,pos, transform, spacing) + [%s] + """%(face,int(float(size)),color,halo_color,halo_radius,placement,dx,dy,overlap,wrap_width,distance,align,opacity,pos, transform, spacing,text) def xml_shieldsymbolizer(path="", width="", height="", text="name",face="DejaVu Sans Book",size="10",color="#000000", halo_color="#ffffff", halo_radius="0", placement="line", offset="0", overlap="false", distance="26", wrap_width=256, align="center", opacity="1", transform="none", unlock_image='true', spacing='500'): @@ -161,9 +161,9 @@ def xml_shieldsymbolizer(path="", width="", height="", if height: height =' height="%s" '%height return """ - + [%s] """%(icons_path, \ - path, width, height,text,face,int(float(size)*text_scale),color,halo_color,halo_radius,placement,offset,overlap,wrap_width,distance,align,opacity, transform, unlock_image, spacing ) + path, width, height,face,int(float(size)*text_scale),color,halo_color,halo_radius,placement,offset,overlap,wrap_width,distance,align,opacity, transform, unlock_image, spacing,text ) def xml_filter(string): return """