Skip to content

Commit

Permalink
style: disable dash and transparent, stronger line when lights off
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-29 committed Dec 10, 2023
1 parent 1d08e28 commit a68eced
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/RunMap/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const RunMap = ({
[startLon, startLat] = points[0];
[endLon, endLat] = points[points.length - 1];
}
let dash = USE_DASH_LINE && !isSingleRun ? [2, 2] : [2, 0];
let dash = USE_DASH_LINE && !isSingleRun && !isBigMap ? [2, 2] : [2, 0];
const onMove = React.useCallback(({ viewState }: {viewState: IViewState}) => {
setViewState(viewState);
}, []);
Expand Down Expand Up @@ -145,9 +145,9 @@ const RunMap = ({
type="line"
paint={{
'line-color': MAIN_COLOR,
'line-width': isBigMap ? 1 : 2,
'line-width': isBigMap && lights ? 1 : 2,
'line-dasharray': dash,
'line-opacity': isSingleRun ? 1 : LINE_OPACITY,
'line-opacity': isSingleRun || isBigMap || !lights ? 1 : LINE_OPACITY,
'line-blur': 1,
}}
layout={{
Expand Down

0 comments on commit a68eced

Please sign in to comment.