Moving a marker to a click point Moving a marker to a click point The following code example sets the position of a marker by using the setPosition method of the marker.