title: Replace getMap with getMapAsync
body: <p>I want to replace the deprecated <code>getMap</code> Method with <code>getMapAsync</code>, but I didn't use <code>MapFragment</code> but <code>GoogleMap</code> like this:</p>
  
  <pre><code>private GoogleMap googleMap;
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_map);
  
      try {
          if(googleMap == null) {
              googleMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();
          }
          googleMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);
          googleMap.setMyLocationEnabled(true);
          googleMap.setTrafficEnabled(true);
          googleMap.setIndoorEnabled(true);
          googleMap.setBuildingsEnabled(true);
          googleMap.getUiSettings().setZoomControlsEnabled(true);
  </code></pre>
  
  <p>If I replace the <code>googleMap</code> with <code>MapFragment</code> like this I'm not able anymore to <code>setMapType</code> and so on. So how can I change to <code>getMapAsync</code> in my case?</p>
  
  <pre><code>MapFragment mapFragment = (MapFragment) getFragmentManager()
              .findFragmentById(R.id.map);
      mapFragment.getMapAsync(this);
  </code></pre>