---
title: lineDashOffset
framework: mapkitjs
role: symbol
role_heading: Interface Property
path: mapkitjs/styleconstructoroptions/linedashoffset
---

# lineDashOffset

The number of CSS pixels to use as the offset when drawing a line’s dash pattern.

## Declaration

```data
lineDashOffset?: number;
```

## Discussion

Discussion This has no effect if you set lineDash to draw solid lines by setting this property to an empty array. The default line dash offset is 0.

## See Also

### Setting line styles

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