Changed response time when entering geofence

This commit is contained in:
2016-01-07 11:45:17 +01:00
parent ac63d0a0d7
commit e19e230433
+1 -1
View File
@@ -150,7 +150,7 @@ namespace NavCityBreda.Views
foreach (Landmark l in r.Landmarks)
{
if (l.Status != Landmark.LandmarkStatus.VISITED)
GeofenceMonitor.Current.Geofences.Add(new Geofence(l.Id, new Geocircle(l.Position.Position, 25), MonitoredGeofenceStates.Entered, true));
GeofenceMonitor.Current.Geofences.Add(new Geofence(l.Id, new Geocircle(l.Position.Position, 25), MonitoredGeofenceStates.Entered, true, TimeSpan.FromSeconds(3)));
l.UpdateIcon();
await Task.Delay(TimeSpan.FromMilliseconds(3));
Map.MapElements.Add(l.Icon);