diff --git a/src/utils/layers.js b/src/utils/layers.js index f2c3331b..02ce77dc 100644 --- a/src/utils/layers.js +++ b/src/utils/layers.js @@ -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, }) @@ -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, })