qsomap: use lighter fill colors for the country polygons

This commit is contained in:
Thomas Kolb 2021-07-03 12:22:15 +02:00
parent fc674d34f7
commit 22b6088515
1 changed files with 2 additions and 2 deletions

View File

@ -272,8 +272,8 @@ def hsv_to_svgstr(h, s, v):
def assign_country_colors(simplegeodata):
for k, v in simplegeodata.items():
hue = random.random()
v['polygon_color'] = hsv_to_svgstr(hue, 0.7, 0.8)
v['label_color'] = hsv_to_svgstr(hue, 0.5, 0.4)
v['polygon_color'] = hsv_to_svgstr(hue, 0.5, 0.9)
v['label_color'] = hsv_to_svgstr(hue, 0.3, 0.6)
def svg_add_countries(doc, simplegeodata, ref_lat, ref_lon, map_radius):