Skip to content

Commit

Permalink
mention alpha layer in maps
Browse files Browse the repository at this point in the history
  • Loading branch information
lordfolken committed Aug 5, 2023
1 parent 1f3ca41 commit 64e85b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/xcsoar/mapgen/topology/shapefiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def __create_index_file(dir_temp, index):
file = open(os.path.join(dir_temp, "topology.tpl"), "w")
try:
file.write(
"* filename, range, icon, label_index, r, g, b, pen_width, label_range, label_important_range\n"
"* filename, range, icon, label_index, r, g, b, pen_width, label_range, label_important_range, alpha\n"
)
for layer in index:
file.write(
Expand All @@ -104,6 +104,8 @@ def __create_index_file(dir_temp, index):
+ str(layer.get("label_range", layer["range"]))
+ ","
+ str(layer.get("label_important_range", 0))
+ ","
+ str(layer.get("alpha", 255))
+ "\n"
)
finally:
Expand Down

0 comments on commit 64e85b9

Please sign in to comment.