<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/Style/fillRule",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "instp/mapkit.Style/fillRule"
  },
  "title" : "fillRule"
}
-->

# fillRule

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

```
get fillRule(): "evenodd" | "nonzero";
set fillRule(fillRule: "evenodd" | "nonzero");
```

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)