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

# opacity

A number that indicates a tile’s opacity.

```
get opacity(): number;
set opacity(opacity: number);
```

## Discussion

Opacity can be a decimal value ranging from `0` to `1`, inclusive:

- An opacity value of `0` indicates tiles aren’t visible.
- An opacity value of `1` indicates tiles are completely opaque. A tile overlay with an opacity of `1` can still have an alpha channel and allow underlying overlays or the default tiles to show through.

The default value 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)