<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 9.2.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/MKOverlayRenderer/init(overlay:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "MapKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MKOverlayRenderer(im)initWithOverlay:"
  },
  "title" : "init(overlay:)"
}
-->

# init(overlay:)

Creates and returns the overlay renderer and associates it with the specified overlay object.

```
init(overlay: any MKOverlay)
```

## Parameters

`overlay`

The overlay object to use when drawing the overlay content on the map. This object provides the data needed to draw the overlay’s shape. The overlay renderer stores a strong reference to this object.

## Return Value

An initialized overlay renderer object.

## Discussion

Initially, the overlay renderer assumes that the overlay is fully opaque and that it has a content scale factor of 1.0. You can change these values as needed using the [`alpha`](/documentation/MapKit/MKOverlayRenderer/alpha) and [`contentScaleFactor`](/documentation/MapKit/MKOverlayRenderer/contentScaleFactor) properties.

---

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)