我一直在使用NASA WorldWind和Google Earth。我正在使用一个KML placemark作为图标,并希望在KML中复制Header / Leader Line。我希望能够实现2525符号中类似于DIRECTION_OF_MOVEMENT线的引导线。基本上,该线指示对象移动的方向,并且无论地图的方向如何,它都保持指向该方向,如附加的屏幕截图中的黑色线所示。如何在Google Earth中使用KML来复制这个功能?
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<kml xmlns="http://earth.google.com/kml/2.1">
<Document>
<Style id="headingexample">
<IconStyle>
<scale>1</scale>
<Icon>
<href>http://freevector.co/wp-content/uploads/2013/11/1625-vertical-line3.png</href>
</Icon>
</IconStyle>
</Style>
<Placemark>
<styleUrl>#headingexample</styleUrl>
<Style>
<IconStyle>
<heading>135</heading>
</IconStyle>
</Style>
<Point>
<coordinates>-99.21,40.01</coordinates>
</Point>
</Placemark>
</Document>
</kml>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<kml xmlns="http://earth.google.com/kml/2.1">
<Document>
<!-- Icon -->
<Style id="tactical_symbol_placemark">
<IconStyle>
<scale>4</scale>
<Icon>
<href>http://i.imgur.com/EEhQcPj.png</href>
</Icon>
</IconStyle>
</Style>
<Placemark>
<styleUrl>#tactical_symbol_placemark</styleUrl>
<Point>
<altitudeMode>relativeToGround</altitudeMode>
<coordinates>-114.19327,51.4292695,6000</coordinates>
</Point>
</Placemark>
<!-- Line -->
<Style id="track_line">
<LineStyle>
<color>FF000000</color>
<width>5.0</width>
</LineStyle>
</Style>
<Folder>
<name>tactical_symbols</name>
<Placemark>
<name>testing-Placemark-2</name>
<styleUrl>#track_line</styleUrl>
<LineString>
<extrude>false</extrude>
<altitudeMode>relativeToGround</altitudeMode>
<coordinates>-114.19827,51.279256,6000 -114.18827,51.579283,6000</coordinates>
</LineString>
</Placemark>
</Folder>
</Document>
</kml>