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

# style

Style properties to apply to the overlay.

```
get style(): Style;
set style(style: Style);
```

## Discussion

The following example shows a new [`style`](/documentation/MapKitJS/Overlay/style) object replacing the current style properties for a circle overlay:

```javascript
circleOverlay.style = new mapkit.Style({
    strokeColor: "#777",
    lineWidth: 3,
    fillColor: "#FFF",
    fillOpacity: .2
});
```

You can also change style properties individually, as this example shows:

```javascript
circleOverlay.style.fillOpacity = .33;
circleOverlay.style.lineWidth = 4;
```

---

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)