<!--
{
  "availability" : [
    "iOS: 4.0.0 - 7.0.0",
    "iPadOS: 4.0.0 - 7.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/MKOverlayView/rectForMapRect:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "MapKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MKOverlayView(im)rectForMapRect:"
  },
  "title" : "rectForMapRect:"
}
-->

# rectForMapRect:

Returns the rectangle in the overlay view that corresponds to the specified rectangle on the map.

```
- (CGRect) rectForMapRect:(MKMapRect) mapRect;
```

## Parameters

`mapRect`

A rectangle on the two-dimensional map projection.

## Return Value

The rectangle specified in the receiver’s coordinate system.

## 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:`](/documentation/MapKit/MKOverlayView/drawMapRect:zoomScale:inContext:) method.

---

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)