Skip to content

Commit

Permalink
Interpolate line paint values
Browse files Browse the repository at this point in the history
  • Loading branch information
LanesGood committed Jun 21, 2024
1 parent 7eb2a33 commit 2d1ddce
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions src/components/timeline/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,28 @@ export function DeploymentMap({
source: "deployment",
paint: {
"line-color": lineColorsPaint,
"line-width": 2,
"line-opacity": 0.5,
"line-width": [
"interpolate",
["linear"],
["zoom"],
0,
1,
10,
2,
22,
6,
],
"line-opacity": [
"interpolate",
["linear"],
["zoom"],
0,
0.25,
10,
0.5,
22,
1,
],
},
visible: true,
}}
Expand Down

0 comments on commit 2d1ddce

Please sign in to comment.