---
title: fillRule
framework: mapkitjs
role: symbol
role_heading: Instance Property
path: mapkitjs/style/fillrule
---

# fillRule

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

## Declaration

```data
get fillRule(): "evenodd" | "nonzero";
set fillRule(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

### Styling fills

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