Code example for Marker

Methods: setPositionsetVisible

0
						/ duration);
				double lng = t * toPosition.longitude + (1 - t)
						* startLatLng.longitude;
				double lat = t * toPosition.latitude + (1 - t)
						* startLatLng.latitude;
				marker.setPosition(new LatLng(lat, lng));
 
				if (t < 1.0) {
					// Post again 16ms later. 
					handler.postDelayed(this, 16);
				} else { 
					if (hideMarker) {
						marker.setVisible(false);
					} else { 
						marker.setVisible(true);
					} 
				} 
			} 
		}); 
	} 
Contextual code suggestions in your IDE  Get Codota for Java