Code example for GoogleMap

Methods: aW, setOnCameraChangeListener, setOnInfoWindowClickListener, setOnMapClickListener, setOnMarkerClickListener

-1
package com.example.amusementfinder; 
 
import android.app.Activity; 
import android.os.Bundle; 
import android.support.v4.app.FragmentTransaction; 
import android.util.AttributeSet; 
import android.util.Log; 
import android.widget.Toast; 
 
import com.google.android.gms.maps.CameraUpdateFactory; 
import com.google.android.gms.maps.GoogleMap; 
import com.google.android.gms.maps.GoogleMap.OnCameraChangeListener; 
import com.google.android.gms.maps.GoogleMap.OnInfoWindowClickListener; 
import com.google.android.gms.maps.GoogleMap.OnMapClickListener; 
import com.google.android.gms.maps.GoogleMap.OnMarkerClickListener; 
import com.google.android.gms.maps.SupportMapFragment; 
import com.google.android.gms.maps.model.CameraPosition; 
import com.google.android.gms.maps.model.LatLng; 
import com.google.android.gms.maps.model.Marker; 
import com.google.android.youtube.player.YouTubeApiServiceUtil; 
import com.google.android.youtube.player.YouTubeInitializationResult; 
import com.google.android.youtube.player.YouTubePlayer; 
import com.google.android.youtube.player.YouTubePlayer.OnInitializedListener; 
import com.google.android.youtube.player.YouTubePlayer.Provider; 
import com.google.android.youtube.player.YouTubePlayerSupportFragment; 
 
public class LocalMapFragment extends SupportMapFragment implements OnMapClickListener
																	  , OnMarkerClickListener
																	  , OnInfoWindowClickListener
																	  , OnCameraChangeListener
																	  , OnInitializedListener{ 
 
	private GetAmusementTask mTask;
 
	@Override 
	public void onInflate(Activity arg0, AttributeSet arg1, Bundle arg2) {
		super.onInflate(arg0, arg1, arg2);
	} 
 
	@Override 
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
 
		GoogleMap map = getMap();
		map.setOnMapClickListener(this);
		map.setOnMarkerClickListener(this);
		map.setOnInfoWindowClickListener(this);
		map.setOnCameraChangeListener(this);
		 
		// マップの初期始点の設定(今回は広島国際学院大学) 
		map.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(34.391185,132.455852), 18.0f));
	}