---
title: "stroke(lineWidth:)"
framework: mapkit
role: symbol
role_heading: Instance Method
path: "mapkit/mapcontent/stroke(linewidth:)"
---

# stroke(lineWidth:)

Applies the given stoke drawn map overlays using the line width you specify.

## Declaration

```swift
@MainActor @preconcurrency func stroke(lineWidth: CGFloat = 1) -> some MapContent

```

## Parameters

- `lineWidth`: The line width to draw the stroke with.

## Return Value

Return Value Returns MapContent with overlays drawn with lineWidth you specified.

## See Also

### Setting stroke properties

- [stroke(_:lineWidth:)](mapkit/mapcontent/stroke(_:linewidth:).md)
- [stroke(_:style:)](mapkit/mapcontent/stroke(_:style:).md)
- [strokeStyle(style:)](mapkit/mapcontent/strokestyle(style:).md)
