shorter groundcolor name

This commit is contained in:
Laura Klünder 2017-11-26 13:13:20 +01:00
parent d6fa4fce23
commit ed8e351556

View file

@ -98,7 +98,7 @@ class MapRenderer:
j += 1
hexcolor = ''.join(hex(int(i*255))[2:].zfill(2) for i in engine.color_to_rgb(color)).upper()
engine.add_geometry(hybrid_union(areas), fill=FillAttribs(color),
category='groundcolor_%s' % hexcolor, item=j)
category='ground_%s' % hexcolor, item=j)
for height, obstacle in altitudearea.obstacles.items():
engine.add_geometry(obstacle, fill=FillAttribs('#cccccc'), category='obstacles')