---
title: "mapRectForRect:"
framework: mapkit
role: symbol
role_heading: Instance Method
path: "mapkit/mkoverlayview/maprectforrect:"
---

# mapRectForRect:

Returns the map rectangle that corresponds to the rectangle in the overlay view’s coordinate system.

## Declaration

```occ
- (MKMapRect) mapRectForRect:(CGRect) rect;
```

## Parameters

- `rect`: The rectangle specified in the receiver’s coordinate system.

## Return Value

Return Value The rectangle on the two-dimensional map project that corresponds to the specified view rectangle.

## Discussion

Discussion Because the bounds and frame rectangles of an overlay view do not change after the view has been created, you may call this method from multiple threads simultaneously. Therefore, you may call this method safely from your view’s drawMapRect:zoomScale:inContext: method.

## See Also

### Converting points on the map

- [pointForMapPoint:](mapkit/mkoverlayview/pointformappoint:.md)
- [mapPointForPoint:](mapkit/mkoverlayview/mappointforpoint:.md)
- [rectForMapRect:](mapkit/mkoverlayview/rectformaprect:.md)
