setVisibleMapRect(_:)
Changes the map’s visible region to the specified map rectangle.
Declaration
func setVisibleMapRect(_ mapRect: MKMapRect)Parameters
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