Switch to distance
This commit is contained in:
@@ -79,8 +79,8 @@ namespace NavCityBreda.Model
|
|||||||
case GeolocationAccessStatus.Allowed:
|
case GeolocationAccessStatus.Allowed:
|
||||||
geo = new Geolocator {
|
geo = new Geolocator {
|
||||||
DesiredAccuracy = PositionAccuracy.High,
|
DesiredAccuracy = PositionAccuracy.High,
|
||||||
//MovementThreshold = 5
|
MovementThreshold = 5
|
||||||
ReportInterval = 1500
|
//ReportInterval = 1500
|
||||||
};
|
};
|
||||||
|
|
||||||
ClearHistory();
|
ClearHistory();
|
||||||
@@ -124,7 +124,10 @@ namespace NavCityBreda.Model
|
|||||||
if (_history.Count > 0)
|
if (_history.Count > 0)
|
||||||
UpdatePosition(_history.Last(), args.Position);
|
UpdatePosition(_history.Last(), args.Position);
|
||||||
else
|
else
|
||||||
|
{
|
||||||
_position = args.Position;
|
_position = args.Position;
|
||||||
|
UpdatePosition(args.Position, args.Position);
|
||||||
|
}
|
||||||
|
|
||||||
_history.Add(args.Position);
|
_history.Add(args.Position);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user