Skip to main content

MarkerDragEventArgs

Namespace: Wisej.Web.Ext.GoogleMaps

Assembly: Wisej.Web.Ext.GoogleMaps (4.1.0.0)

Provides data for the MarkerDragStart and the MarkerDragEnd event.

public class MarkerDragEventArgs : EventArgs

Constructors​

Instance member MarkerDragEventArgs(e)​

Initializes an instance of the MarkerDragEventArgs class.

NameTypeDescription
eWidgetEventArgsThe event data from the client.

Throws:

Properties​

Instance member Location​

LatLng: Returns the coordinates of the marker.

For MarkerDragEnd it's the new location of the marker, for MarkerDragStart the location at the start of the drag operation.

Example:

Saving the new position of a marker:

private void googleMap1_MarkerDragEnd(object sender, MarkerDragEventArgs e)
{
SaveMarkerPosition(e.Marker, e.Location.Lat, e.Location.Lng);
}

Instance member Marker​

String: Returns the ID of the marker that was dragged.

Instance member Position​

Point: Returns the position of the marker in pixels, as reported by the Google Maps drag event.

Used By​

NameDescription
MarkerDragEventHandlerRepresents the method that will handle the marker drag events of a GoogleMap control.