---
title: "init(origin:size:)"
framework: mapkit
role: symbol
role_heading: Initializer
path: "mapkit/mkmaprect/init(origin:size:)"
---

# init(origin:size:)

Creates the map rectangle with the specified point and size.

## Declaration

```swift
init(origin: MKMapPoint, size: MKMapSize)
```

## Parameters

- `origin`: The origin of the map rectangle as an doc://com.apple.mapkit/documentation/MapKit/MKMapPoint.
- `size`: The size of the map rectangle as an doc://com.apple.mapkit/documentation/MapKit/MKMapSize.

## See Also

### Creating a map rectangle

- [init()](mapkit/mkmaprect/init().md)
- [init(x:y:width:height:)](mapkit/mkmaprect/init(x:y:width:height:).md)
- [init(_:)](mapkit/mkcoordinateregion/init(_:).md)
