---
title: lineWidth
framework: mapkitjs
role: symbol
role_heading: Interface Property
path: mapkitjs/styleconstructoroptions/linewidth
---

# lineWidth

The width of a line’s stroke, in CSS pixels.

## Declaration

```data
lineWidth?: number;
```

## Discussion

Discussion The default line width is 1.

## See Also

### Setting line styles

- [lineCap](mapkitjs/styleconstructoroptions/linecap.md)
- [lineDash](mapkitjs/styleconstructoroptions/linedash.md)
- [lineDashOffset](mapkitjs/styleconstructoroptions/linedashoffset.md)
- [lineJoin](mapkitjs/styleconstructoroptions/linejoin.md)
