This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Check for map errors and if there are none change the web map renderer | |
private func mapDidLoad(_ map: AGSMap) { | |
if let error = map.loadError { | |
let errorMessage = error.localizedDescription | |
// Create a new alert and present it to the user | |
let errorAlert = UIAlertController(title: "Attention", message: errorMessage, preferredStyle: .alert) | |
self.present(errorAlert, animated: true, completion: nil) |