Contents

mapViewDidFailLoadingMap(_:withError:)

Tells the delegate that the specified view is unable to load the map data.

Declaration

optional func mapViewDidFailLoadingMap(_ mapView: MKMapView, withError error: any Error)

Parameters

  • mapView:

    The map view that starts the load operation.

  • error:

    The reason that the map view can’t load the map data.

Discussion

The map view might call this method in situations where the device doesn’t have access to the network or is unable to load the map data for some reason. The map view may also call this method if a request for additional map tiles comes in while a previous request for tiles is pending. You can use this message to notify the user that the map data is unavailable.

See Also

Loading the map data