package edu.yalestc.yalepublic;

import android.app.Activity;
import android.os.Bundle;

/**
 * Created by Jason Liu on 10/18/14.
 */
public class MapView extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.map_simple);
    }

}

@@ -86,251 +86,1037 @@
 e;%0A%0A
-/**%0A * Created by Jason Liu on 10/18/14.%0A */%0Apublic class MapView extends Activity %7B%0A%0A    @Override%0A    protected void onCreate(Bundle savedInstanceState) %7B%0A        super.onCreate(savedInstanceState);%0A        setContentView(R.layout.map_simple
+import com.google.android.gms.maps.CameraUpdateFactory;%0Aimport com.google.android.gms.maps.GoogleMap;%0Aimport com.google.android.gms.maps.MapFragment;%0Aimport com.google.android.gms.maps.model.LatLng;%0Aimport com.google.android.gms.maps.model.MarkerOptions;%0A%0A/**%0A * Created by Jason Liu on 10/18/14.%0A */%0Apublic class MapView extends Activity %7B%0A%0A    @Override%0A    protected void onCreate(Bundle savedInstanceState) %7B%0A        super.onCreate(savedInstanceState);%0A        setContentView(R.layout.map_simple);%0A%0A        // Get a handle to the Map Fragment%0A        GoogleMap map = ((MapFragment) getFragmentManager()%0A                .findFragmentById(R.id.map)).getMap();%0A%0A        LatLng yale = new LatLng(41.3111, -72.9267);   // The - signifies the Western Hemisphere%0A%0A        map.setMyLocationEnabled(true);%0A        map.moveCamera(CameraUpdateFactory.newLatLngZoom(yale, 13));%0A%0A        map.addMarker(new MarkerOptions()%0A                .title(%22Yale%22)%0A                .snippet(%22The best university ever.%22)%0A                .position(yale)
 );%0A 

Add centered map on our location