---
title: "strokeStyle(style:)"
framework: mapkit
role: symbol
role_heading: Instance Method
path: "mapkit/mapcontent/strokestyle(style:)"
---

# strokeStyle(style:)

Applies the given stroke style to drawn map overlays.

## Declaration

```swift
@MainActor @preconcurrency func strokeStyle(style: StrokeStyle) -> some MapContent

```

## Parameters

- `style`: The stroke style to apply.

## Return Value

Return Value Returns MapContent with overlays drawn with the StrokeStyle you specified.

## See Also

### Setting stroke properties

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