Code example for Marker

Methods: equals

0
				@Override 
					public boolean onMarkerClick(Marker mk) {
						// TODO Auto-generated method stub 
						alert.setTitle("Travel Mojo"); 
						 
						if(mk.equals(tc)){ 
							alert.setMessage("Heading to USC Main! 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(MAIN, map.getMaxZoomLevel())); 
								} 
							}).setNegativeButton("NOPE.", new DialogInterface.OnClickListener() { 
								 
								@Override 
								public void onClick(DialogInterface dialog, int which) {} 
							}); 
							 
						} else if(mk.equals(main)){ 
							alert.setMessage("Heading to SM City Cebu! 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(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) {