From 10f19f4a0c8fec308d33d7028f8acb36fffd503a Mon Sep 17 00:00:00 2001 From: dzmitryfomchyn Date: Wed, 20 Sep 2023 17:28:19 +0300 Subject: [PATCH] More logs --- .../data/MapboxNavigationViewportDataSource.kt | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/libnavui-maps/src/main/java/com/mapbox/navigation/ui/maps/camera/data/MapboxNavigationViewportDataSource.kt b/libnavui-maps/src/main/java/com/mapbox/navigation/ui/maps/camera/data/MapboxNavigationViewportDataSource.kt index d32ab7ee33b..1484fdb076f 100644 --- a/libnavui-maps/src/main/java/com/mapbox/navigation/ui/maps/camera/data/MapboxNavigationViewportDataSource.kt +++ b/libnavui-maps/src/main/java/com/mapbox/navigation/ui/maps/camera/data/MapboxNavigationViewportDataSource.kt @@ -393,7 +393,7 @@ class MapboxNavigationViewportDataSource( cameraForOverview = overviewCameraOptions ) - Log.d("MapZoomingTest", "MapboxNavigationViewportDataSource.evaluate(). options: $options, resulting viewportData: $viewportData") + Log.d("MapZoomingTest", "MapboxNavigationViewportDataSource.evaluate(). resulting viewportData: $viewportData") } /** @@ -709,6 +709,13 @@ class MapboxNavigationViewportDataSource( } private fun updateFollowingData(cameraState: CameraState) { + Log.d("MapZoomingTest", "MapboxNavigationViewportDataSource.updateFollowingData($cameraState). " + + "pointsToFrameOnCurrentStep: $pointsToFrameOnCurrentStep, " + + "targetLocation: $targetLocation, " + + "additionalPointsToFrameForFollowing: $additionalPointsToFrameForFollowing, " + + "pointsToFrameAfterCurrentStep: $pointsToFrameAfterCurrentStep" + ) + val pointsForFollowing: MutableList = pointsToFrameOnCurrentStep.toMutableList() val localTargetLocation = targetLocation @@ -797,6 +804,12 @@ class MapboxNavigationViewportDataSource( } private fun updateOverviewData(cameraState: CameraState) { + Log.d("MapZoomingTest", "MapboxNavigationViewportDataSource.updateOverviewData($cameraState). " + + "simplifiedRemainingPointsOnRoute: $simplifiedRemainingPointsOnRoute, " + + "targetLocation: $targetLocation, " + + "additionalPointsToFrameForOverview: $additionalPointsToFrameForOverview" + ) + val pointsForOverview = simplifiedRemainingPointsOnRoute.toMutableList() val localTargetLocation = targetLocation