---
title: "setVisibleMapRect(_:)"
framework: watchkit
role: symbol
role_heading: Instance Method
path: "watchkit/wkinterfacemap/setvisiblemaprect(_:)"
---

# setVisibleMapRect(_:)

Changes the map’s visible region to the specified map rectangle.

## Declaration

```swift
func setVisibleMapRect(_ mapRect: MKMapRect)
```

## Parameters

- `mapRect`: The region to be displayed, specified as a map rectangle. The size of the rectangle provides an implicit zoom value for the map. For more information about the doc://com.apple.documentation/documentation/MapKit/MKMapRect type, see doc://com.apple.documentation/documentation/MapKit.

## Discussion

Discussion The method may adjust the specified map rectangle slightly to fit the available display space for the map. The adjusted region always includes the entire region you specified. Changing the visible region may require the loading of additional map tiles to render the map. Loading tiles requires an active network connection.

## See Also

### Related Documentation

- [App Programming Guide for watchOS](apple-archive/documentation/General/Conceptual/WatchKitProgrammingGuide.md)

### Specifying the Map Region

- [setRegion(_:)](watchkit/wkinterfacemap/setregion(_:).md)
