예제 #1
0
        //Create a new waypoint on the map and assign a track to it
        public async Task addWaypointToMap(Track t, Plot newPlot, Plot oldPlot)
        {
            Plot p = new Plot();

            //Make the plot belong to a track by taking the trackID from the selected track
            p.trackID = t.trackID;
            //Set the latitude & longitude from the input Plot
            p.latitude  = newPlot.latitude;
            p.longitude = newPlot.longitude;

            checkServerStatus();
            await server.createNewWaypointAsync(p, oldPlot);

            serverIsAvailable = true;
        }