Code example for Marker

Methods: equals

0
			@Override 
				public boolean onMarkerClick(Marker mk) {
					// TODO Auto-generated method stub 
					alert.setTitle("travel"); 
					 
					if(mk.equals(tc)){ 
						alert.setMessage("to main campus! continue?") 
						.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()));
							} 
						}).setNegativeButton("NOPE.", new DialogInterface.OnClickListener() {
							 
							@Override 
							public void onClick(DialogInterface dialog, int which) {}
						}); 
						 
					} else if(mk.equals(smcebu)){ 
						alert.setMessage("to talamban campus! Are you sure you want to continue?") 
						.setPositiveButton("YES!", new DialogInterface.OnClickListener() {
							 
							@Override 
							public void onClick(DialogInterface dialog, int which) {