title: Adding a MapView Programmatically
body: <p>I am trying to add a Map View to one of my View Controllers programmatically. Here is what I have so far: </p>
  
  <pre><code>let mapView: MKMapView = {
  
          let map = MKMapView()
  
          map.translatesAutoresizingMaskIntoConstraints = false
  
          map.mapType = MKMapType.standard
          map.isZoomEnabled = true
          map.isScrollEnabled = true
  
          return map
      }()
  
  
   override func viewDidLoad() {
          super.viewDidLoad()
  
          view.addSubview(mapView)
  
          //Mark: MapView
  
          mapView.centerXAnchor.constraint(equalTo: view.centerXAnchor).isActive = true
          mapView.centerYAnchor.constraint(equalTo: view.centerYAnchor).isActive = true
          mapView.heightAnchor.constraint(equalToConstant: 200).isActive = true
          mapView.widthAnchor.constraint(equalToConstant: 200).isActive = true
  
          view.backgroundColor = UIColor.white
      }
  </code></pre>
  
  <p>However, when I load this View Controller, I get a blank white screen. Am I missing something here?</p>