colorise single track in kml file

前端 未结 3 1014
情话喂你
情话喂你 2021-01-02 21:38

I am trying to have a gx:track\'s line to have different colour in different part in the track depending on some conditions, but I am unable to find way to colour part of a

3条回答
  •  伪装坚强ぢ
    2021-01-02 21:53

    I used simplekml which uses Python to generate KML code. As the other answers point out you have to split the line into multiple linestrings each of which has a different style. You can use a common set of styles for making the size of kml smaller though.

    the end coordinates of one line is the start coordinates of the next line.

提交回复
热议问题