---
title: strokeOpacity
framework: mapkitjs
role: symbol
role_heading: Instance Property
path: mapkitjs/style/strokeopacity
---

# strokeOpacity

The opacity of the stroke color.

## Declaration

```data
get strokeOpacity(): number;
set strokeOpacity(strokeOpacity: number);
```

## Mentioned in

Adding interactivity to overlays

## Discussion

Discussion The value of this property can be in the range of 0 (fully transparent) to 1 (fully opaque). The default stroke opacity is 1.

## See Also

### Styling strokes

- [strokeColor](mapkitjs/style/strokecolor.md)
- [strokeStart](mapkitjs/style/strokestart.md)
- [strokeEnd](mapkitjs/style/strokeend.md)
