@@ -63,6 +63,7 @@ import com.mapbox.navigation.ui.maps.route.line.model.RouteLineUpdateValue
63
63
import com.mapbox.navigation.ui.maps.route.line.model.RouteSetValue
64
64
import com.mapbox.navigation.utils.internal.ifNonNull
65
65
import com.mapbox.navigation.utils.internal.logE
66
+ import com.mapbox.navigation.utils.internal.logI
66
67
import org.jetbrains.annotations.TestOnly
67
68
68
69
/* *
@@ -169,6 +170,10 @@ class MapboxRouteLineView @VisibleForTesting internal constructor(
169
170
Pair (MapboxRouteLineUtils .layerGroup3SourceKey, RouteLineFeatureId (null ))
170
171
)
171
172
173
+ init {
174
+ logI(" BelowLayerId: ${options.routeLineBelowLayerId} " , TAG )
175
+ }
176
+
172
177
@TestOnly
173
178
internal fun initPrimaryRouteLineLayerGroup (layerIds : Set <String >) {
174
179
primaryRouteLineLayerGroup = layerIds
@@ -244,6 +249,10 @@ class MapboxRouteLineView @VisibleForTesting internal constructor(
244
249
callback : RoutesRenderedCallbackWrapper ?
245
250
) {
246
251
rebuildSourcesAndLayersIfNeeded(style)
252
+ logI(" Layers size: ${style.styleLayers.size} " , TAG )
253
+ style.styleLayers.forEach {
254
+ logI(" ${it.id} properties: ${style.getStyleLayerProperties(it.id).value} " , TAG )
255
+ }
247
256
val primaryRouteTrafficVisibility = getTrafficVisibility(style)
248
257
val primaryRouteVisibility = getPrimaryRouteVisibility(style)
249
258
val alternativeRouteVisibility = getAlternativeRoutesVisibility(style)
@@ -430,6 +439,11 @@ class MapboxRouteLineView @VisibleForTesting internal constructor(
430
439
.forEach { mutationCommand ->
431
440
mutationCommand()
432
441
}
442
+
443
+ logI(" Layers moved. New order:" , TAG )
444
+ style.styleLayers.forEach {
445
+ logI(" After render ${it.id} properties: ${style.getStyleLayerProperties(it.id).value} " , TAG )
446
+ }
433
447
}
434
448
435
449
private fun getRelatedSourceKey (
@@ -459,6 +473,7 @@ class MapboxRouteLineView @VisibleForTesting internal constructor(
459
473
}
460
474
}
461
475
476
+ val trafficProvider = it.routeLineMaskingLayerDynamicData?.trafficExpressionProvider
462
477
ifNonNull(it.routeLineMaskingLayerDynamicData) { overlayData ->
463
478
overlayData.restrictedSectionExpressionProvider?.apply {
464
479
getExpressionUpdateFun(MASKING_LAYER_RESTRICTED , this )(style)
@@ -490,9 +505,13 @@ class MapboxRouteLineView @VisibleForTesting internal constructor(
490
505
if (
491
506
overlayData.baseExpressionProvider !is RouteLineTrimExpressionProvider
492
507
) {
508
+ logI(" Move layers up." , TAG )
493
509
getMaskingLayerMoveCommands(style).forEach { mutationCommand ->
494
510
mutationCommand()
495
511
}
512
+ style.styleLayers.forEach {
513
+ logI(" Moved up ${it.id} properties: ${style.getStyleLayerProperties(it.id).value} " , TAG )
514
+ }
496
515
}
497
516
}
498
517
}
0 commit comments