Now that we have learned how to read and map the coordinates, we need to add the maneuver by fetching each GPS point in a specific interval instead of loading all of them to the map. This will allow us to see a real-time view of the actual path.
To start simulating real-time maneuvering, we should first read the coordinates from the file into memory. To do that, follows these steps:
Open our TelZaViBa project from
C:\ArcGISByExample\telzaviba\Code
if you have closed it.Double-click on
btnRealTime
to open its code.First we will need to add a Windows Form to ask the user to select the GPS file instead of hardcoding it. To add a Windows Form, point to Project menu and then click on Add Windows Form. Then, in the Add New Item dialog, type
frmRealTime.vb
in the Name text, as shown in the following screenshot:Click on Add to add the form to the project and double-click on
frmRealTime
to open it.We will need a timer...