public void OnProgressChange(Location p0, RouteProgress p1) { mapboxMap.LocationComponent.ForceLocationUpdate(p0); if (!isRefreshing) { isRefreshing = true; routeRefresh.Refresh(p1); } Timber.D("onProgressChange: fraction of route traveled: %f", p1.FractionTraveled()); }
public void OnProgressChange(Location location, RouteProgress routeProgress) { locationLayerPlugin.ForceLocationUpdate(location); System.Diagnostics.Debug.WriteLine("onProgressChange: fraction of route traveled: {0}", routeProgress.FractionTraveled()); }