---
title: toMapRect()
framework: mapkitjs
role: symbol
role_heading: Instance Method
path: mapkitjs/coordinateregion/tomaprect
---

# toMapRect()

Returns the map rectangle that corresponds to the calling coordinate region.

## Declaration

```data
toMapRect(): MapRect;
```

## Mentioned in

MapKit JS 6 Migrating from Version 5 to Version 6

## Return Value

Return Value A MapRect that corresponds to the calling CoordinateRegion.

## See Also

### Comparing, copying, and converting regions

- [copy()](mapkitjs/coordinateregion/copy.md)
- [equals(anotherRegion)](mapkitjs/coordinateregion/equals.md)
- [toBoundingRegion()](mapkitjs/coordinateregion/toboundingregion.md)
