@@ -818,7 +818,7 @@ class MapboxRouteLineApi @VisibleForTesting internal constructor(
818818 val trafficExpProvider = RouteLineValueCommandHolder (
819819 // TODO why is this a "light" expression instead of "heavy"?
820820 // Congestion generation for initial draw uses "heavy"
821- LightRouteLineExpressionValueProvider {
821+ LightRouteLineValueProvider {
822822 MapboxRouteLineUtils .getTrafficLineExpression(
823823 it,
824824 0.0 ,
@@ -831,7 +831,7 @@ class MapboxRouteLineApi @VisibleForTesting internal constructor(
831831 LineGradientCommandApplier (),
832832 )
833833 val mainExpCommandHolder = RouteLineValueCommandHolder (
834- LightRouteLineExpressionValueProvider {
834+ LightRouteLineValueProvider {
835835 MapboxRouteLineUtils .getExpressionSubstitutingColorForInactiveLegs(
836836 0.0 ,
837837 segments,
@@ -844,7 +844,7 @@ class MapboxRouteLineApi @VisibleForTesting internal constructor(
844844 LineGradientCommandApplier (),
845845 )
846846 val casingExpApplier = RouteLineValueCommandHolder (
847- LightRouteLineExpressionValueProvider {
847+ LightRouteLineValueProvider {
848848 MapboxRouteLineUtils .getExpressionSubstitutingColorForInactiveLegs(
849849 0.0 ,
850850 segments,
@@ -857,7 +857,7 @@ class MapboxRouteLineApi @VisibleForTesting internal constructor(
857857 LineGradientCommandApplier (),
858858 )
859859 val trailExpCommandHolder = RouteLineValueCommandHolder (
860- LightRouteLineExpressionValueProvider {
860+ LightRouteLineValueProvider {
861861 MapboxRouteLineUtils .getExpressionSubstitutingColorForInactiveLegs(
862862 0.0 ,
863863 segments,
@@ -870,7 +870,7 @@ class MapboxRouteLineApi @VisibleForTesting internal constructor(
870870 LineGradientCommandApplier (),
871871 )
872872 val trailCasingExpCommandHolder = RouteLineValueCommandHolder (
873- LightRouteLineExpressionValueProvider {
873+ LightRouteLineValueProvider {
874874 MapboxRouteLineUtils .getExpressionSubstitutingColorForInactiveLegs(
875875 0.0 ,
876876 segments,
@@ -887,7 +887,7 @@ class MapboxRouteLineApi @VisibleForTesting internal constructor(
887887 val restrictedExpCommandHolder = RouteLineValueCommandHolder (
888888 // TODO why is this a "light" expression instead of "heavy"?
889889 // Congestion generation for initial draw uses "heavy"
890- LightRouteLineExpressionValueProvider (
890+ LightRouteLineValueProvider (
891891 getRestrictedLineExpressionProducer(
892892 routeLineOptions,
893893 restrictedExpressionData,
@@ -1205,7 +1205,7 @@ class MapboxRouteLineApi @VisibleForTesting internal constructor(
12051205 val alternateRoute1TrafficExpressionCommandHolder =
12061206 alternativeRoute1?.route?.let { route ->
12071207 RouteLineValueCommandHolder (
1208- HeavyRouteLineExpressionValueProvider {
1208+ HeavyRouteLineValueProvider {
12091209 MapboxRouteLineUtils .getTrafficLineExpression(
12101210 route,
12111211 routeLineOptions,
@@ -1224,7 +1224,7 @@ class MapboxRouteLineApi @VisibleForTesting internal constructor(
12241224 val alternateRoute2TrafficExpressionCommandHolder =
12251225 if (partitionedRoutes.second.size > 1 ) {
12261226 RouteLineValueCommandHolder (
1227- HeavyRouteLineExpressionValueProvider {
1227+ HeavyRouteLineValueProvider {
12281228 MapboxRouteLineUtils .getTrafficLineExpression(
12291229 alternativeRoute2!! .route,
12301230 routeLineOptions,
@@ -1251,7 +1251,7 @@ class MapboxRouteLineApi @VisibleForTesting internal constructor(
12511251 val wayPointsFeatureCollection = wayPointsFeatureCollectionDef.await()
12521252
12531253 val alternateRoute1BaseExpressionCommandHolder = RouteLineValueCommandHolder (
1254- LightRouteLineExpressionValueProvider {
1254+ LightRouteLineValueProvider {
12551255 MapboxRouteLineUtils .getRouteLineExpression(
12561256 alternative1PercentageTraveled,
12571257 Color .TRANSPARENT ,
@@ -1262,7 +1262,7 @@ class MapboxRouteLineApi @VisibleForTesting internal constructor(
12621262 )
12631263
12641264 val alternateRoute1CasingExpressionCommandHolder = RouteLineValueCommandHolder (
1265- LightRouteLineExpressionValueProvider {
1265+ LightRouteLineValueProvider {
12661266 MapboxRouteLineUtils .getRouteLineExpression(
12671267 alternative1PercentageTraveled,
12681268 Color .TRANSPARENT ,
@@ -1273,7 +1273,7 @@ class MapboxRouteLineApi @VisibleForTesting internal constructor(
12731273 )
12741274
12751275 val alternateRoute1TrailExpressionCommandHolder = RouteLineValueCommandHolder (
1276- LightRouteLineExpressionValueProvider {
1276+ LightRouteLineValueProvider {
12771277 MapboxRouteLineUtils .getRouteLineExpression(
12781278 alternative1PercentageTraveled,
12791279 Color .TRANSPARENT ,
@@ -1284,7 +1284,7 @@ class MapboxRouteLineApi @VisibleForTesting internal constructor(
12841284 )
12851285
12861286 val alternateRoute1TrailCasingExpressionCommandHolder = RouteLineValueCommandHolder (
1287- LightRouteLineExpressionValueProvider {
1287+ LightRouteLineValueProvider {
12881288 MapboxRouteLineUtils .getRouteLineExpression(
12891289 alternative1PercentageTraveled,
12901290 Color .TRANSPARENT ,
@@ -1296,7 +1296,7 @@ class MapboxRouteLineApi @VisibleForTesting internal constructor(
12961296
12971297 val alternateRoute1RestrictedSectionsExpressionCommandHolder =
12981298 RouteLineValueCommandHolder (
1299- LightRouteLineExpressionValueProvider {
1299+ LightRouteLineValueProvider {
13001300 MapboxRouteLineUtils .getRouteLineExpression(
13011301 alternative1PercentageTraveled,
13021302 Color .TRANSPARENT ,
@@ -1307,14 +1307,14 @@ class MapboxRouteLineApi @VisibleForTesting internal constructor(
13071307 )
13081308
13091309 val alternateRoute1BlurExpressionHolder = RouteLineValueCommandHolder (
1310- LightRouteLineExpressionValueProvider {
1310+ LightRouteLineValueProvider {
13111311 getSingleColorExpression(Color .TRANSPARENT )
13121312 },
13131313 LineGradientCommandApplier (),
13141314 )
13151315
13161316 val alternateRoute2BaseExpressionCommandHolder = RouteLineValueCommandHolder (
1317- LightRouteLineExpressionValueProvider {
1317+ LightRouteLineValueProvider {
13181318 MapboxRouteLineUtils .getRouteLineExpression(
13191319 alternative2PercentageTraveled,
13201320 Color .TRANSPARENT ,
@@ -1325,7 +1325,7 @@ class MapboxRouteLineApi @VisibleForTesting internal constructor(
13251325 )
13261326
13271327 val alternateRoute2CasingExpressionCommandHolder = RouteLineValueCommandHolder (
1328- LightRouteLineExpressionValueProvider {
1328+ LightRouteLineValueProvider {
13291329 MapboxRouteLineUtils .getRouteLineExpression(
13301330 alternative2PercentageTraveled,
13311331 Color .TRANSPARENT ,
@@ -1336,7 +1336,7 @@ class MapboxRouteLineApi @VisibleForTesting internal constructor(
13361336 )
13371337
13381338 val alternateRoute2TrailExpressionCommandHolder = RouteLineValueCommandHolder (
1339- LightRouteLineExpressionValueProvider {
1339+ LightRouteLineValueProvider {
13401340 MapboxRouteLineUtils .getRouteLineExpression(
13411341 alternative2PercentageTraveled,
13421342 Color .TRANSPARENT ,
@@ -1347,7 +1347,7 @@ class MapboxRouteLineApi @VisibleForTesting internal constructor(
13471347 )
13481348
13491349 val alternateRoute2TrailCasingExpressionCommandHolder = RouteLineValueCommandHolder (
1350- LightRouteLineExpressionValueProvider {
1350+ LightRouteLineValueProvider {
13511351 MapboxRouteLineUtils .getRouteLineExpression(
13521352 alternative2PercentageTraveled,
13531353 Color .TRANSPARENT ,
@@ -1359,7 +1359,7 @@ class MapboxRouteLineApi @VisibleForTesting internal constructor(
13591359
13601360 val alternateRoute2RestrictedSectionsExpressionCommandHolder =
13611361 RouteLineValueCommandHolder (
1362- LightRouteLineExpressionValueProvider {
1362+ LightRouteLineValueProvider {
13631363 MapboxRouteLineUtils .getRouteLineExpression(
13641364 alternative2PercentageTraveled,
13651365 Color .TRANSPARENT ,
@@ -1370,7 +1370,7 @@ class MapboxRouteLineApi @VisibleForTesting internal constructor(
13701370 )
13711371
13721372 val alternateRoute2BlurExpressionHolder = RouteLineValueCommandHolder (
1373- LightRouteLineExpressionValueProvider {
1373+ LightRouteLineValueProvider {
13741374 getSingleColorExpression(Color .TRANSPARENT )
13751375 },
13761376 LineGradientCommandApplier (),
@@ -1391,28 +1391,28 @@ class MapboxRouteLineApi @VisibleForTesting internal constructor(
13911391 )
13921392 RouteLineDynamicData (
13931393 baseExpressionCommandHolder = RouteLineValueCommandHolder (
1394- LightRouteLineExpressionValueProvider { exp },
1394+ LightRouteLineValueProvider { exp },
13951395 LineGradientCommandApplier (),
13961396 ),
13971397 casingExpressionCommandHolder = RouteLineValueCommandHolder (
1398- LightRouteLineExpressionValueProvider { exp },
1398+ LightRouteLineValueProvider { exp },
13991399 LineGradientCommandApplier (),
14001400 ),
14011401 trafficExpressionCommandHolder = RouteLineValueCommandHolder (
1402- LightRouteLineExpressionValueProvider { exp },
1402+ LightRouteLineValueProvider { exp },
14031403 LineGradientCommandApplier (),
14041404 ),
14051405 restrictedSectionExpressionCommandHolder = RouteLineValueCommandHolder (
1406- LightRouteLineExpressionValueProvider { exp },
1406+ LightRouteLineValueProvider { exp },
14071407 LineGradientCommandApplier (),
14081408 ),
14091409 trimOffset = RouteLineTrimOffset (vanishingPointOffset),
14101410 trailExpressionCommandHolder = RouteLineValueCommandHolder (
1411- LightRouteLineExpressionValueProvider { exp },
1411+ LightRouteLineValueProvider { exp },
14121412 LineGradientCommandApplier (),
14131413 ),
14141414 trailCasingExpressionCommandHolder = RouteLineValueCommandHolder (
1415- LightRouteLineExpressionValueProvider { exp },
1415+ LightRouteLineValueProvider { exp },
14161416 LineGradientCommandApplier (),
14171417 ),
14181418 )
0 commit comments