I'm using simple_kml
library to generate a kml file with data sent from drawing manager
on google Maps using Javascript, everything goes fine except the color of the shape .. the color send in this format #ec0909
, and here is how am trying to add it to the shape:
ls = kml.newlinestring(name="Polyline")
ls.coords = [(latlng['lng'], latlng['lat']) for latlng in shape['coordinates']]
ls.description = shape['info_box']
print(f"THE COLOR IS {color_code}") #returns #ec0909
ls.style.polystyle.color = color_code
as you see the color should be red .. but it is shown as blue/red shaded color.