package com.upmoon.alexanderbean.barcrawlr.fragments;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.upmoon.alexanderbean.barcrawlr.R;

/**
 * A simple {@link Fragment} subclass.
 */
public class MapFragment extends Fragment {


    public MapFragment() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        return inflater.inflate(R.layout.fragment_map, container, false);
    }

}

@@ -49,16 +49,79 @@
 ents;%0A%0A%0A
+import android.location.Location;%0Aimport android.os.AsyncTask;%0A
 import a
@@ -287,40 +287,579 @@
 com.
-upmoon.alexanderbean.barcrawlr.R
+google.android.gms.common.GooglePlayServicesUtil;%0Aimport com.google.android.gms.common.api.GoogleApiClient;%0Aimport com.google.android.gms.maps.CameraUpdate;%0Aimport com.google.android.gms.maps.CameraUpdateFactory;%0Aimport com.google.android.gms.maps.GoogleMap;%0Aimport com.google.android.gms.maps.OnMapReadyCallback;%0Aimport com.google.android.gms.maps.SupportMapFragment;%0Aimport com.google.android.gms.maps.model.LatLng;%0Aimport com.google.android.gms.maps.model.LatLngBounds;%0Aimport com.upmoon.alexanderbean.barcrawlr.R;%0Aimport com.upmoon.alexanderbean.barcrawlr.model.Place
 ;%0A%0A/
@@ -937,16 +937,26 @@
 extends 
+SupportMap
 Fragment
@@ -962,90 +962,1609 @@
 t %7B%0A
-%0A%0A    public MapFragment() %7B%0A        // Required empty public constructor%0A    %7D%0A%0A%0A
+    private static final String TAG = %22MapFragment%22;%0A%0A    //private GoogleApiClient mClient;%0A    private GoogleMap mMap;%0A    private Location mCurrentLocation;%0A    private Place mPlace;%0A%0A    public MapFragment() %7B%0A        // Required empty public constructor%0A    %7D%0A%0A    @Override%0A    public void onCreate(Bundle savedInstanceState) %7B%0A        super.onCreate(savedInstanceState);%0A        setHasOptionsMenu(true);%0A%0A        //mClient = new GoogleApiClient.Builder(getActivity()).build();%0A%0A        getMapAsync(new OnMapReadyCallback() %7B%0A            @Override%0A            public void onMapReady(GoogleMap googleMap) %7B%0A                mMap = googleMap;%0A                updateUI();%0A            %7D%0A        %7D);%0A    %7D%0A%0A    private class SearchTask extends AsyncTask%3CLocation,Void,Void%3E %7B%0A        private Location mLocation;%0A%0A        @Override%0A        protected Void doInBackground(Location... params) %7B%0A            mLocation = params%5B0%5D;%0A%0A            return null;%0A        %7D%0A%0A        @Override%0A        protected void onPostExecute(Void result) %7B%0A            mCurrentLocation = mLocation;%0A%0A            updateUI();%0A        %7D%0A    %7D%0A%0A    private void updateUI() %7B%0A        if (mMap == null) %7B%0A            return;%0A        %7D%0A%0A        LatLng pPlace = new LatLng(mPlace.getLat(), mPlace.getLon());%0A        LatLng myPlace = new LatLng(mCurrentLocation.getLatitude(), mCurrentLocation.getLongitude());%0A%0A        LatLngBounds bounds = new LatLngBounds.Builder().include(pPlace).include(myPlace).build();%0A%0A        CameraUpdate update = CameraUpdateFactory.newLatLngBounds(bounds,0);%0A        mMap.animateCamera(update);%0A    %7D%0A%0A/*
     
@@ -2833,12 +2833,13 @@
 );%0A    %7D
-%0A
+*/
 %0A%7D%0A

Change MapFragment to extend SupportMapFragment