Actually render cities of any size when passed

This commit is contained in:
Alexandra Hrefna Maheu 2025-03-31 09:43:43 -04:00
parent 9dcb6f043e
commit c4c5336e53

View file

@ -85,18 +85,13 @@ class EquirectMap():
if city.population >= 1000000:
radius = 4
pass
elif city.population >= 500000:
radius = 3
pass
elif city.population >= 100000:
radius = 2
pass
else:
radius = 1
pass
if radius > 2:
extents = cr.text_extents(city.name)
cr.set_source_rgb(0.2, 0.2, 0.2)