Code example for GoogleMap

Methods: animateCamera, getMaxZoomLevel

0
				if(marker.equals(uscTc)){ 
					alert.setMessage("Do you want to go to USC-Main Campus?") 
					.setPositiveButton("Sure",new DialogInterface.OnClickListener() { 
						public void onClick(DialogInterface dialog,int id) { 
							// Animate to usc main 
							map.animateCamera(CameraUpdateFactory.newLatLngZoom(MAIN, map.getMaxZoomLevel())); 
						} 
					  }) 
					.setNegativeButton("No Thanks",new DialogInterface.OnClickListener() { 
						public void onClick(DialogInterface dialog,int id) {} 
					}); 
				} else if(marker.equals(uscMain)){ 
					alert.setMessage("Do you want to go to Ayala Center Cebu?") 
					.setPositiveButton("Sure",new DialogInterface.OnClickListener() { 
						public void onClick(DialogInterface dialog,int id) {
							// Animate to usc main 
							map.animateCamera(CameraUpdateFactory.newLatLngZoom(AYALA, map.getMaxZoomLevel()));
						} 
					  }) 
					.setNegativeButton("No Thanks",new DialogInterface.OnClickListener() {
						public void onClick(DialogInterface dialog,int id) {}