jodeqa / open-gpstracker

Automatically exported from code.google.com/p/open-gpstracker
0 stars 0 forks source link

KMZ export: add a tracking pointer #121

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It would be great if the KMZ file could be used to replay the movement along 
the path. I am using Open GPS Tracker 0.9.18, and it generates KMZ with fairly 
low-resolution path, the global timespan information, but nothing changes if 
user manipulates the playback controls.

It would be nice if a pointer would move along the path, when the time is 
adjusted. Right now the information about time of registration is not saved in 
KMZ file at all.

This can be achieved by adding this KML markup for every point of registration: 

<Placemark>
  <TimeSpan>
    <begin>2010-07-01T16:23:50Z</begin>
    <end>2010-07-01T16:30:18Z</end>
  </TimeSpan>
  <styleUrl>#pointer</styleUrl>
  <Point>
    <coordinates>12.34,56.78,90.12</coordinates>
  </Point>
</Placemark>

Original issue reported on code.google.com by passi...@gmail.com on 2 Jul 2010 at 10:58

GoogleCodeExporter commented 8 years ago

Original comment by rcgr...@gmail.com on 21 Jul 2010 at 7:11

GoogleCodeExporter commented 8 years ago
Done. Notes:
- I created 2 kind of elements: the overall track that aready existed and the 
moving pointer.
- I decided to set the checkHideChildren property to hide the huge amount of 
elements. 
You can still right-click on a point to see attributes (eg height).
- Points time span from one waypoint to the next one (i'm not controlling if 
they overlap in time, etc, but they should be quite ok).
- KMZ is now about double size, uncompressed is way bigger.
- Maybe it could have been done without an extra db query.

I attach a sample. Open in google earth, it will automatically show the time 
seek bar.

Original comment by LatinSuD@gmail.com on 18 Nov 2010 at 10:38

Attachments: