Code example for GoogleMap

Methods: animateCamera, getMaxZoomLevel

0
							.setPositiveButton("YES!", new DialogInterface.OnClickListener() { 
								 
								@Override 
								public void onClick(DialogInterface dialog, int which) {
									// TODO Auto-generated method stub 
									map.animateCamera(CameraUpdateFactory.newLatLngZoom(SM, map.getMaxZoomLevel()));
								} 
							}).setNegativeButton("NOPE.", new DialogInterface.OnClickListener() {
								 
								@Override 
								public void onClick(DialogInterface dialog, int which) {}
							}); 
							 
						} else if(mk.equals(smcebu)){ 
							alert.setMessage("Heading to USC-TC! Are you sure you want to continue?") 
							.setPositiveButton("YES!", new DialogInterface.OnClickListener() {
								 
								@Override 
								public void onClick(DialogInterface dialog, int which) {
									// TODO Auto-generated method stub 
									map.animateCamera(CameraUpdateFactory.newLatLngZoom(TC, map.getMaxZoomLevel()));