When I originally coded my KML file, I had various linestyle elements to make different line segments render in different colours.
Now I’m using StyleMap to render the segrments in a different width when the mouse hovers over them, but the colours are no longer being rendered by Cesium.
Is there a way I can force the colours to still work in Cesium?
Sample file:
http://www.ka72.com/DesktopModules/ka72/TrackDetails/kml.asmx/GetFile?tid=154427
Note if you open the sample file in Google Earth, the segments render in colour.
Here are the relevant extracts from my KML file:
<Style id="5by10_5style_n"> <LineStyle> <color>FF000000</color> <width>2</width> </LineStyle> </Style> <Style id="5by10_5style_h"> <LineStyle> <color>FF000000</color> <width>4</width> </LineStyle> </Style> <StyleMap id="5by10_5style"> <Pair> <key>normal</key> <styleUrl>5by10_5style_n</styleUrl> </Pair> <Pair> <key>highlight</key> <styleUrl>5by10_5style_h</styleUrl> </Pair> </StyleMap>
[snip]