google 地球图标在固定方向跟随轨迹
google earth icon follow track in fixed orientation
我在 google earth 中创建了一个曲目,并在曲目播放时添加了一个图标来跟踪曲目。图标是一张照片。
目前,当图标跟随轨道时,它会根据轨道方向重新定位。
我想让图标跟随轨道的路径但保持固定的方向。例如,用作图标的照片应遵循轨道,但在屏幕上始终保持正确的方向。
这可能吗?
您可以使用 <gx:angles>
标签来指定图标图像的角度。
该标签可让您定义与 3D 模型相关的 3 个角度(航向、倾斜、滚动),但只有第一个(航向)用于图标。例如,要删除所有旋转,请使用:<gx:angles>0,0,0</gx:angles>
(或 <gx:angles>0</gx:angles>
适用于图标)。
您需要为曲目中的每个 <when>
和 <gx:coord>
标签注入一个 <gx:angles>...</gx:angles>
标签,并且它们全部放在一个组中,就在 [= 之后16=] 标签。使用文本编辑器应该相对容易,只需 find/count <when>
或 <gx:coord>
标签的数量,然后粘贴相同数量的 <gx:angles>
标签,如示例以下。
有关 <gx:angles>
用法的详细信息,请参阅 <gx:Track>
和 "Elements Specific to Track" 的 KML 参考文档:
https://developers.google.com/kml/documentation/kmlreference#elements-specific-to-track
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2">
<Document>
<name>Track angles sample</name>
<open>1</open>
<Style id="multiTrack">
<IconStyle>
<scale>1.2</scale>
<Icon>
<href>http://earth.google.com/images/kml-icons/track-directional/track-0.png</href>
</Icon>
</IconStyle>
<LineStyle>
<color>99ffac59</color>
<width>8</width>
</LineStyle>
</Style>
<Placemark>
<name>Track no heading</name>
<styleUrl>#multiTrack</styleUrl>
<gx:Track>
<when>2018-02-11T20:40:00Z</when>
<when>2018-02-11T20:40:14Z</when>
<when>2018-02-11T20:40:21Z</when>
<when>2018-02-11T20:40:34Z</when>
<when>2018-02-11T20:40:43Z</when>
<when>2018-02-11T20:40:55Z</when>
<when>2018-02-11T20:40:58Z</when>
<when>2018-02-11T20:41:09Z</when>
<when>2018-02-11T20:41:19Z</when>
<when>2018-02-11T20:41:28Z</when>
<when>2018-02-11T20:41:34Z</when>
<when>2018-02-11T20:41:45Z</when>
<when>2018-02-11T20:42:09Z</when>
<when>2018-02-11T20:42:19Z</when>
<when>2018-02-11T20:42:26Z</when>
<when>2018-02-11T20:42:36Z</when>
<when>2018-02-11T20:42:44Z</when>
<when>2018-02-11T20:42:54Z</when>
<when>2018-02-11T20:43:07Z</when>
<when>2018-02-11T20:43:25Z</when>
<when>2018-02-11T20:43:36Z</when>
<when>2018-02-11T20:43:40Z</when>
<when>2018-02-11T20:43:43Z</when>
<when>2018-02-11T20:43:52Z</when>
<gx:coord>-122.199034 37.848592 434.65</gx:coord>
<gx:coord>-122.199048 37.848607 435.13</gx:coord>
<gx:coord>-122.198994 37.848681 431.77</gx:coord>
<gx:coord>-122.198893 37.848839 433.21</gx:coord>
<gx:coord>-122.198838 37.84894 435.61</gx:coord>
<gx:coord>-122.198777 37.849058 437.06</gx:coord>
<gx:coord>-122.198761 37.849086 437.54</gx:coord>
<gx:coord>-122.198706 37.849269 435.13</gx:coord>
<gx:coord>-122.19871 37.849278 434.65</gx:coord>
<gx:coord>-122.19872 37.849313 435.13</gx:coord>
<gx:coord>-122.198712 37.849318 435.13</gx:coord>
<gx:coord>-122.198682 37.849315 436.58</gx:coord>
<gx:coord>-122.198669 37.849327 436.1</gx:coord>
<gx:coord>-122.198529 37.849297 435.13</gx:coord>
<gx:coord>-122.198439 37.849289 433.69</gx:coord>
<gx:coord>-122.198284 37.849231 433.69</gx:coord>
<gx:coord>-122.198191 37.849186 434.17</gx:coord>
<gx:coord>-122.198076 37.849115 434.65</gx:coord>
<gx:coord>-122.197967 37.849155 434.65</gx:coord>
<gx:coord>-122.197937 37.849166 435.13</gx:coord>
<gx:coord>-122.19793 37.849157 435.13</gx:coord>
<gx:coord>-122.197881 37.849172 436.58</gx:coord>
<gx:coord>-122.197844 37.849167 436.58</gx:coord>
<gx:coord>-122.197708 37.849201 438.5</gx:coord>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
</gx:Track>
</Placemark>
</Document>
</kml>
我在 google earth 中创建了一个曲目,并在曲目播放时添加了一个图标来跟踪曲目。图标是一张照片。 目前,当图标跟随轨道时,它会根据轨道方向重新定位。 我想让图标跟随轨道的路径但保持固定的方向。例如,用作图标的照片应遵循轨道,但在屏幕上始终保持正确的方向。 这可能吗?
您可以使用 <gx:angles>
标签来指定图标图像的角度。
该标签可让您定义与 3D 模型相关的 3 个角度(航向、倾斜、滚动),但只有第一个(航向)用于图标。例如,要删除所有旋转,请使用:<gx:angles>0,0,0</gx:angles>
(或 <gx:angles>0</gx:angles>
适用于图标)。
您需要为曲目中的每个 <when>
和 <gx:coord>
标签注入一个 <gx:angles>...</gx:angles>
标签,并且它们全部放在一个组中,就在 [= 之后16=] 标签。使用文本编辑器应该相对容易,只需 find/count <when>
或 <gx:coord>
标签的数量,然后粘贴相同数量的 <gx:angles>
标签,如示例以下。
有关 <gx:angles>
用法的详细信息,请参阅 <gx:Track>
和 "Elements Specific to Track" 的 KML 参考文档:
https://developers.google.com/kml/documentation/kmlreference#elements-specific-to-track
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2">
<Document>
<name>Track angles sample</name>
<open>1</open>
<Style id="multiTrack">
<IconStyle>
<scale>1.2</scale>
<Icon>
<href>http://earth.google.com/images/kml-icons/track-directional/track-0.png</href>
</Icon>
</IconStyle>
<LineStyle>
<color>99ffac59</color>
<width>8</width>
</LineStyle>
</Style>
<Placemark>
<name>Track no heading</name>
<styleUrl>#multiTrack</styleUrl>
<gx:Track>
<when>2018-02-11T20:40:00Z</when>
<when>2018-02-11T20:40:14Z</when>
<when>2018-02-11T20:40:21Z</when>
<when>2018-02-11T20:40:34Z</when>
<when>2018-02-11T20:40:43Z</when>
<when>2018-02-11T20:40:55Z</when>
<when>2018-02-11T20:40:58Z</when>
<when>2018-02-11T20:41:09Z</when>
<when>2018-02-11T20:41:19Z</when>
<when>2018-02-11T20:41:28Z</when>
<when>2018-02-11T20:41:34Z</when>
<when>2018-02-11T20:41:45Z</when>
<when>2018-02-11T20:42:09Z</when>
<when>2018-02-11T20:42:19Z</when>
<when>2018-02-11T20:42:26Z</when>
<when>2018-02-11T20:42:36Z</when>
<when>2018-02-11T20:42:44Z</when>
<when>2018-02-11T20:42:54Z</when>
<when>2018-02-11T20:43:07Z</when>
<when>2018-02-11T20:43:25Z</when>
<when>2018-02-11T20:43:36Z</when>
<when>2018-02-11T20:43:40Z</when>
<when>2018-02-11T20:43:43Z</when>
<when>2018-02-11T20:43:52Z</when>
<gx:coord>-122.199034 37.848592 434.65</gx:coord>
<gx:coord>-122.199048 37.848607 435.13</gx:coord>
<gx:coord>-122.198994 37.848681 431.77</gx:coord>
<gx:coord>-122.198893 37.848839 433.21</gx:coord>
<gx:coord>-122.198838 37.84894 435.61</gx:coord>
<gx:coord>-122.198777 37.849058 437.06</gx:coord>
<gx:coord>-122.198761 37.849086 437.54</gx:coord>
<gx:coord>-122.198706 37.849269 435.13</gx:coord>
<gx:coord>-122.19871 37.849278 434.65</gx:coord>
<gx:coord>-122.19872 37.849313 435.13</gx:coord>
<gx:coord>-122.198712 37.849318 435.13</gx:coord>
<gx:coord>-122.198682 37.849315 436.58</gx:coord>
<gx:coord>-122.198669 37.849327 436.1</gx:coord>
<gx:coord>-122.198529 37.849297 435.13</gx:coord>
<gx:coord>-122.198439 37.849289 433.69</gx:coord>
<gx:coord>-122.198284 37.849231 433.69</gx:coord>
<gx:coord>-122.198191 37.849186 434.17</gx:coord>
<gx:coord>-122.198076 37.849115 434.65</gx:coord>
<gx:coord>-122.197967 37.849155 434.65</gx:coord>
<gx:coord>-122.197937 37.849166 435.13</gx:coord>
<gx:coord>-122.19793 37.849157 435.13</gx:coord>
<gx:coord>-122.197881 37.849172 436.58</gx:coord>
<gx:coord>-122.197844 37.849167 436.58</gx:coord>
<gx:coord>-122.197708 37.849201 438.5</gx:coord>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
<gx:angles>0</gx:angles>
</gx:Track>
</Placemark>
</Document>
</kml>