diff --git a/src/renderer/src/lib/map/data/processBorders.ts b/src/renderer/src/lib/map/data/processBorders.ts index 619e24a..cda0640 100644 --- a/src/renderer/src/lib/map/data/processBorders.ts +++ b/src/renderer/src/lib/map/data/processBorders.ts @@ -349,9 +349,11 @@ export default function processBorders( ? '' : multiPolygonToPath(smoothedInnerBorderGeoJSON, settings.borderStroke.smoothing); const borderOnlyGeoJSON = - smoothedInnerBorderGeoJSON == null || smoothedOuterBorderGeoJSON == null - ? smoothedOuterBorderGeoJSON - : turf.difference(smoothedOuterBorderGeoJSON, smoothedInnerBorderGeoJSON); + settings.borderStroke.width === 0 + ? null + : smoothedInnerBorderGeoJSON == null || smoothedOuterBorderGeoJSON == null + ? smoothedOuterBorderGeoJSON + : turf.difference(smoothedOuterBorderGeoJSON, smoothedInnerBorderGeoJSON); border.borderPath = borderOnlyGeoJSON ? multiPolygonToPath(borderOnlyGeoJSON, settings.borderStroke.smoothing) : '';