MarkerDragEventArgs
Namespace: Wisej.Web.Ext.GoogleMaps
Assembly: Wisej.Web.Ext.GoogleMaps (4.1.0.0)
Provides data for the MarkerDragStart and the MarkerDragEnd event.
- C#
- VB.NET
public class MarkerDragEventArgs : EventArgs
Public Class MarkerDragEventArgs
Inherits EventArgs
Constructors
MarkerDragEventArgs(e)
Initializes an instance of the MarkerDragEventArgs class.
| Name | Type | Description |
|---|---|---|
| e | WidgetEventArgs | The event data from the client. |
Throws:
- ArgumentNullException e is null.
Properties
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);
}
Marker
String: Returns the ID of the marker that was dragged.
Position
Point: Returns the position of the marker in pixels, as reported by the Google Maps drag event.
Used By
| Name | Description |
|---|---|
| MarkerDragEventHandler | Represents the method that will handle the marker drag events of a GoogleMap control. |