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

# strokeOpacity

The opacity of the stroke color.

```
strokeOpacity?: number;
```

## Discussion

The value of this property can be in the range of `0` (fully transparent) to `1` (fully opaque). The default stroke opacity is `1`.

---

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)