Hi,
Using Lazarus 2.0.12 on Windows, Mac, Linux
I'm Translating one of My program written in C# to Pascal Lazarus.
I use that program to visualize walks we've made with friends.
I'm using LazMapViewer and have 2 GPS Objects
Track: TGpsTrack; // show the path of the track.
CurPos: TGpsPoint; // Show a Cursor
For now, all is O.K., I can load the path from a .CSV file and display it and also the Cursor at the start of the path.
Track.Name := 'CSV';
Map.GPSItems.Add(Track, ID);
CurPos.Name:= 'Pos';
Map.GpsItems.Add(CurPos, _CURSOR_);
My problem:
I want CurPos to follow the Track with a timer.
But I don"t know how to get the Track positions back from
Map.GPSItems and set CurPos to a new value.
Any idea?
Thank you.
P.S. I found the solution by myself, thank you.