---
title: fillRule
framework: mapkitjs
role: symbol
role_heading: Interface Property
path: mapkitjs/styleconstructoroptions/fillrule
---

# fillRule

A rule for determining whether a point is inside or outside a polygon.

## Declaration

```data
fillRule?: "evenodd" | "nonzero";
```

## Discussion

Discussion This can be either the nonzero winding rule (nonzero), or the even-odd rule (evenodd). The default fill rule is nonzero.

## See Also

### Setting fill styles

- [fillColor](mapkitjs/styleconstructoroptions/fillcolor.md)
- [fillOpacity](mapkitjs/styleconstructoroptions/fillopacity.md)
