Code example for SupportMapFragment

Methods: getMap

0
 
    private void setUpMapIfNeeded() { 
        // Do a null check to confirm that we have not already instantiated the map. 
        if (mMap == null) { 
            // Try to obtain the map from the SupportMapFragment. 
            mMap = mMapFragment.getMap(); 
            // Check if we were successful in obtaining the map. 
            if (mMap != null) { 
                setUpMap(); 
            } 
        } 
    } 
 
    private void setUpMap() { 
        mMap.addMarker(new MarkerOptions().position(new LatLng(0, 0)).title("Marker")); 
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java