hizoom polygons look ugly on lowzoom

This commit is contained in:
Komzpa 2012-05-31 17:05:42 +03:00
parent 95af6e21f4
commit 4f9ced4dd8

View file

@ -372,16 +372,16 @@ def xml_layer(type="postgis", geom="point", interesting_tags = "*", sql = "true"
</Datasource>
</Layer>"""%(layer_id, db_proj, subs, sql, intersection_SQL, db_user, db_name, db_srid, table_prefix, geom)
elif type == "coast":
#if zoom < 9:
#return """
#<Layer name="l%s" status="on" srs="%s">
#%s
#<Datasource>
#<Parameter name="type">shape</Parameter>
#<Parameter name="file">%sshoreline_300</Parameter>
#</Datasource>
#</Layer>"""%(layer_id, db_proj, subs, world_bnd_path)
#else:
if zoom < 9:
return """
<Layer name="l%s" status="on" srs="%s">
%s
<Datasource>
<Parameter name="type">shape</Parameter>
<Parameter name="file">%sshoreline_300</Parameter>
</Datasource>
</Layer>"""%(layer_id, db_proj, subs, world_bnd_path)
else:
return """
<Layer name="l%s" status="on" srs="%s">
%s