Hello, I am making a WatchKit extension. I am able to display the map view but only lines and grid boxes are coming up. How do I display the actual map instead of just grids? thank you
import WatchKit
import Foundation
class InterfaceController: WKInterfaceController {
@IBOutlet var mapview: WKInterfaceMap!
var location = CLLocationManager()
override func awake(withContext context: Any?) {
super.awake(withContext: context)
// Configure interface objects here.
}
override func willActivate() {
super.willActivate()
// location.delegate = self
// location.desiredAccuracy = kCLLocationAccuracyBestForNavigation
// location.startUpdatingLocation()
// location.requestWhenInUseAuthorization()
//
let cavscords = CLLocationCoordinate2D(latitude: 41.496577, longitude: -81.688076)
let coordinateSpan = MKCoordinateSpan(latitudeDelta: 10, longitudeDelta: 10)
self.mapview.addAnnotation(cavscords, with: .purple)
self.mapview.setRegion(MKCoordinateRegion(center: cavscords, span: coordinateSpan))
}
override func didDeactivate() {
// This method is called when watch view controller is no longer visible
super.didDeactivate()
}
}