Skip to content

Commit 8a4ad19

Browse files
committed
calculate masking layers for initial leg instead of 0
1 parent 94a3f73 commit 8a4ad19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libnavui-maps/src/main/java/com/mapbox/navigation/ui/maps/route/line/api/MapboxRouteLineApi.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1847,7 +1847,7 @@ class MapboxRouteLineApi(
18471847
}
18481848

18491849
val maskingLayerData = if ((primaryRoute?.route?.directionsRoute?.legs()?.size ?: 0) > 1) {
1850-
getRouteLineDynamicDataForMaskingLayers(routeLineExpressionData, 0)
1850+
getRouteLineDynamicDataForMaskingLayers(routeLineExpressionData, legIndex)
18511851
} else {
18521852
val exp = MapboxRouteLineUtils.getRouteLineExpression(
18531853
1.0,

0 commit comments

Comments
 (0)