Esempio n. 1
0
 private void cleanGpsVehicle()
 {
     if(m_vehicle != null)
     {
         VehiclesCache.deleteVehicle(m_vehicle);	// takes care of removing it from LayerVehicle
         m_vehicle = null;
     }
 }
Esempio n. 2
0
 private void vehicleMovedCallback(GpsRealTimeData rtData)
 {
     if(rtData.location != null && !closing)
     {
         if(Project.gpsRtTrackLog)
         {
             if(logTrack(rtData))
             {
                 trkptCountLabel.Text = "" + totalTrkpt + " points";
             }
         }
         if(trackOnMapCheckBox.Checked)
         {
             if(keepInViewCheckBox.Checked)
             {
                 m_cameraManager.keepInView(rtData.location);
             }
             if(m_vehicle == null)
             {
                 m_vehicle = new VehicleGps(rtData, "GPS", Project.gpsVehicleIcon, "GPS", Project.WEBSITE_LINK_WEBSTYLE, "", false);
                 VehiclesCache.addVehicle(m_vehicle);
             }
             else
             {
                 m_vehicle.ProcessMove(rtData);
             }
         }
     }
 }