This commit is contained in:
2015-12-23 15:55:56 +01:00
parent 12a7baf7d4
commit 0d5a87ed6d
2 changed files with 5 additions and 4 deletions
+2
View File
@@ -1,6 +1,7 @@
using NavCityBreda.Helpers;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@@ -36,6 +37,7 @@ namespace NavCityBreda.Model
uint reportInterval = minReportInterval > 16 ? minReportInterval : 16;
comp.ReportInterval = reportInterval;
comp.ReadingChanged += Comp_ReadingChanged;
hdn = comp.GetCurrentReading();
}
}
+3 -4
View File
@@ -146,7 +146,8 @@ namespace NavCityBreda.Views
Map.MapElements.Clear();
Map.MapElements.Add(CurrentPosition);
Map.MapElements.Add(CurrentNavigationLine);
Map.MapElements.Add(Util.GetRouteLine(App.Geo.History.Select(p => p.Coordinate.Point.Position).ToList(), Color.FromArgb(255, 155, 155, 155), 250, 6));
if (App.Geo.History.Count > 1)
Map.MapElements.Add(Util.GetRouteLine(App.Geo.History.Select(p => p.Coordinate.Point.Position).ToList(), Color.FromArgb(255, 155, 155, 155), 250, 6));
foreach (Landmark l in r.Landmarks)
{
@@ -200,13 +201,11 @@ namespace NavCityBreda.Views
{
Settings.Tracking = false;
await Task.Delay(TimeSpan.FromMilliseconds(500));
await Map.TrySetViewBoundsAsync(App.RouteManager.CurrentRoute.Bounds, null, Windows.UI.Xaml.Controls.Maps.MapAnimationKind.Linear);
await Map.TrySetViewBoundsAsync(App.RouteManager.CurrentRoute.Bounds, null, Windows.UI.Xaml.Controls.Maps.MapAnimationKind.Default);
await Task.Delay(TimeSpan.FromMilliseconds(500));
await Map.TryRotateToAsync(0);
await Task.Delay(TimeSpan.FromMilliseconds(1500));
await Zoom();
await Task.Delay(TimeSpan.FromMilliseconds(500));
await Map.TryRotateToAsync((double)App.CompassTracker.Heading.HeadingTrueNorth);
Settings.Tracking = true;
}