Closed syncrostone closed 1 month ago
Thanks for the PR! One bug though: the use of the pop function modifies the dictionary, so if you have a STYLE = {...} at the beginning of your file and pass it to this function more than once, the text_properties will be removed after the first invocation. Either make a copy first and modify the copy, or else construct a new dictionary which excludes the element to pass on. E.g., see this line
Good point! I modified the code so that the dictionary gets copied first instead.
Thanks Jasmine!
As an example, the text color can now be set with the
text_params
field:Resulting in the following legend: