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 
								gmap.animateCamera(CameraUpdateFactory.newLatLngZoom(MAIN_CAMPUS, gmap.getMaxZoomLevel())); 
							} 
						}).setNegativeButton("NOPE.", new DialogInterface.OnClickListener() { 
							 
							@Override 
							public void onClick(DialogInterface dialog, int which) {} 
						}); 
						 
					} else if(mk.equals(main)){ 
						alert.setMessage("to sm! continue?") 
						.setPositiveButton("YES!", new DialogInterface.OnClickListener() { 
							 
							@Override 
							public void onClick(DialogInterface dialog, int which) {
								// TODO Auto-generated method stub 
								gmap.animateCamera(CameraUpdateFactory.newLatLngZoom(SM, gmap.getMaxZoomLevel()));