better area/line ordering
This commit is contained in:
parent
06e4b6820c
commit
d13b1f6efc
1 changed files with 8 additions and 8 deletions
16
src/komap.py
16
src/komap.py
|
@ -265,14 +265,14 @@ if options.renderer == "mapnik":
|
|||
mfile.write(xml_layer("postgis", "polygon", itags, sql, zoom=zoom ))
|
||||
else:
|
||||
xml_nolayer()
|
||||
|
||||
index_range = range(-6,7)
|
||||
full_layering = conf_full_layering
|
||||
if (zoom < 9) or not conf_full_layering :
|
||||
index_range = (-6,0,6)
|
||||
full_layering = False
|
||||
|
||||
for layer_type, entry_types in [("line",("way", "line")),("polygon",("way","area"))]:
|
||||
index_range = range(-6,7)
|
||||
full_layering = conf_full_layering
|
||||
if (zoom < 9) or not conf_full_layering :
|
||||
index_range = (-6,0,6)
|
||||
full_layering = False
|
||||
|
||||
|
||||
for zlayer in index_range:
|
||||
sql_g = set()
|
||||
there_are_dashed_lines = False
|
||||
|
@ -335,7 +335,7 @@ if options.renderer == "mapnik":
|
|||
else:
|
||||
xml_nolayer()
|
||||
|
||||
|
||||
for layer_type, entry_types in [("line",("way", "line")),("polygon",("way","area"))]:
|
||||
## lines and polygons pass
|
||||
sql_g = set()
|
||||
there_are_dashed_lines = False
|
||||
|
|
Loading…
Add table
Reference in a new issue