Code example for SupportMapFragment

Methods: getMap, onCreateView

    private static final LatLng DENTON_PARKING_GARAGE = new LatLng(33.208666,-97.145877);
    private GoogleMap googleMap;
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = super.onCreateView(inflater, container, savedInstanceState);
        // get the map 
        googleMap = getMap();
        // Create a marker that shows the parking garage on the map 
        MarkerOptions mOptions = new MarkerOptions();
        // add the marker to the map and zoom to that location. 
        googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(DENTON_PARKING_GARAGE, 15));
        return view;