Skip to content

Commit

Permalink
fix: use round style for line-join and line-cap (#566)
Browse files Browse the repository at this point in the history
* fix: use round style for line-join and line-cap

* chore: do same for outline layer
  • Loading branch information
jenniferarnesen authored Mar 13, 2024
1 parent bac699c commit 476f5af
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/utils/layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ export const lineLayer = ({ id, color, width, opacity, source, filter }) => ({
'line-width': widthExpr(width),
'line-opacity': opacity ?? defaults.opacity,
},
layout: {
'line-join': 'round',
'line-cap': 'round',
},
filter: filter || isLine,
})

Expand Down Expand Up @@ -84,6 +88,10 @@ export const outlineLayer = ({
'line-width': widthExpr(width),
'line-opacity': opacity ?? defaults.opacity,
},
layout: {
'line-join': 'round',
'line-cap': 'round',
},
filter: filter || isPolygon,
})

Expand Down

0 comments on commit 476f5af

Please sign in to comment.