Test icons drawing; tags in YAML file.

This commit is contained in:
Sergey Vartanov 2015-07-30 01:02:06 +03:00
parent 4c01cded68
commit 3b6bc00522
4 changed files with 310 additions and 18 deletions

View file

@ -495,6 +495,8 @@ def to_write(key):
def draw_nodes():
print 'Draw nodes...'
# yaml.load(open('tags.yml'))
for node_id in node_map:
node = node_map[node_id]
flinged = flinger.fling(Geo(node['lat'], node['lon']))
@ -581,10 +583,6 @@ def draw_nodes():
shapes.append('train')
else:
processed.remove(k)
for k in p:
if 'roof:material' in p and p['roof:material'] == 'metal':
draw_point_shape('metal_roof', flinged.x + 16, y, fill)
processed.add('roof:material')
elif 'natural' in p:
k = 'natural'
v = p['natural']