问题描述
我正在使用网络链接和网络链接控件将坐标添加到gx:Track.我知道该网络链接正在工作,因为它更改了我需要进行的其他更新,但根本没有更改gx:Track.就是说,新的坐标不会添加到轨道中.
I am using a Network Link and Network Link Control to add coordinates to a gx:Track. I know that the network link is working because it changes other updates that I needed to make, but it doesn't change the gx:Track at all. And by that I mean that new coordinates do not get added to the track.
这是我的代码,更新内容附加到:
Here is my code that the updates get tacked onto:
<Folder id="movement">
<name>Position</name>
<Placemark id="known_mov">
<name>Known Position - movement</name>
<description>position according to GPS data for transmitted messages</description>
<styleUrl>#multiTrack</styleUrl>
<gx:Track id ="trans_pos_mov">
<!-- UPDATES ADDED HERE -->
</gx:Track>
</Placemark>
这是更新代码:
<Create>
<gx:Track targetId="trans_pos_mov">
<when>12:56:25</when>
<gx:coord>1 1 1</gx:coord>
</gx:Track>
</Create>
我在某处错过了一步吗?我不是在正确的位置打电话给targetId吗?
Am I missing a step somewhere? Am I not calling the targetId in the right spot?
非常感谢.
推荐答案
应该可以.您是否注意到ID后的等号前有空格?
That should work. Did you notice that you have a space after id, before the equals sign?
id ="trans_pos_mov"
这将解释为什么您看不到任何更新,id属性为空.
That would explain why you're not seeing any updates, id attribute would be empty.
这篇关于KML gx:跟踪网络链接更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!