我正在尝试将默认的黄色 Push-PIN 位置标记更改为矩形或像素。在下面运行代码后,我仍然得到默认的黄色 Push-PIN 位置标记。
import simplekml
#from simplekml import Shape,Color
kml = simplekml.Kml()
pt2=kml.newpoint(name="test", coords=[(18.432314,-33.988862)])
#both code below are not working.
pt2.style.iconstyle.icon.shape='rectangle'
pt2.style.iconstyle.shape='rectangle'
pt2.style.iconstyle.color='ffffff00'
kml.save("test.kml")