---
title: "init(mapRect:)"
framework: mapkit
role: symbol
role_heading: Initializer
path: "mapkit/mkcircle/init(maprect:)"
---

# init(mapRect:)

Creates and returns a circle object that derives the circular area from the specified rectangle.

## Declaration

```swift
convenience init(mapRect: MKMapRect)
```

## Parameters

- `mapRect`: The map rectangle that determines the circular area. The initializer uses the center point of the rectangle as the center point of the circle. If the rectangle isn’t a square, the method uses the longest side of the rectangle to define the radius of the resulting circle.

## Return Value

Return Value A circle overlay object.

## See Also

### Creating a circle overlay

- [init(center:radius:)](mapkit/mkcircle/init(center:radius:).md)
