Skip to content

Commit

Permalink
cost surface layer: ensures inerpolation is possible
Browse files Browse the repository at this point in the history
  • Loading branch information
agnlez committed Apr 15, 2024
1 parent 31c3a27 commit bfee545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/hooks/map/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export function useCostSurfaceLayer({
['get', 'cost'],
layerSettings.min === layerSettings.max ? 0 : layerSettings.min,
COLORS.cost[0],
layerSettings.max,
layerSettings.min === layerSettings.max ? layerSettings.max + 1 : layerSettings.max,
COLORS.cost[1],
],
'fill-opacity': 0.75 * (layerSettings.opacity ?? 1),
Expand Down

0 comments on commit bfee545

Please sign in to comment.