New basemap styling is coming soon to Google Maps Platform. This update to map styling includes a new default color palette, modernized pins, and improvements to map experiences and usability. All map styles will be automatically updated in March 2025. For more information on availability and how to opt in earlier, see New map style for Google Maps Platform.
Called repeatedly while a marker is being dragged. The marker's location can be accessed via
getPosition().
Parameters
marker
The marker being dragged.
public
abstract
void
onMarkerDragEnd(Marker marker)
Called when a marker has finished being dragged. The marker's location can be accessed via
getPosition().
Parameters
marker
The marker that was dragged.
public
abstract
void
onMarkerDragStart(Marker marker)
Called when a marker starts being dragged. The marker's location can be accessed via getPosition(); this position may be different to the position prior to the start of
the drag because the marker is popped up above the touch point.