KML gx:Track Network Link updates

我与影子孤独终老i 提交于 2019-12-12 04:04:42

问题


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>

And here is the code for the updates:

<Create>
  <gx:Track targetId="trans_pos_mov">
    <when>12:56:25</when>
    <gx:coord>1 1 1</gx:coord>
  </gx:Track>
</Create>

Am I missing a step somewhere? Am I not calling the targetId in the right spot?

Much thanks.


回答1:


That should work. Did you notice that you have a space after id, before the equals sign?

id ="trans_pos_mov"

That would explain why you're not seeing any updates, id attribute would be empty.



来源:https://stackoverflow.com/questions/11613376/kml-gxtrack-network-link-updates

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!