Class DrawingManager
The DrawingManager class provides a graphical interface for users to draw polygons, rectangles, polylines, circles, and markers on the map.
Inheritance
Inherited Members
Namespace:GoogleMaps.Drawing
Assembly:GoogleMaps.dll
Syntax
public class DrawingManager : ExtenderControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IExtenderControl, IPostBackEventHandler
Properties
CircleOptions
Defines the options to apply to any new circles created with this DrawingManager.
Declaration
[PersistenceMode(PersistenceMode.InnerProperty)]
public DrawingCircleOptions CircleOptions { get; set; }
Property Value
Type | Description |
---|---|
DrawingCircleOptions |
DrawingControl
Defines the visibility of the drawing tools selection interface on the map.
Declaration
public bool DrawingControl { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
DrawingControlOptions
Defines the position of the control, and the types of overlays that should be represented in the control.
Declaration
[PersistenceMode(PersistenceMode.InnerProperty)]
public DrawingControlOptions DrawingControlOptions { get; set; }
Property Value
Type | Description |
---|---|
DrawingControlOptions |
DrawingMode
Defines the initial drawing state of the DrawingManager. Default is null, in which case the cursor is in a non-drawing mode when the DrawingManager is initialized.
Declaration
public DrawingOverlayType DrawingMode { get; set; }
Property Value
Type | Description |
---|---|
DrawingOverlayType |
MarkerOptions
Defines the options to apply to any new markers created with this DrawingManager.
Declaration
[PersistenceMode(PersistenceMode.InnerProperty)]
public DrawingMarkerOptions MarkerOptions { get; set; }
Property Value
Type | Description |
---|---|
DrawingMarkerOptions |
OnClientCircleComplete
Gets or sets the client drawing circle complete event handler.
Declaration
public string OnClientCircleComplete { get; set; }
Property Value
Type | Description |
---|---|
System.String |
OnClientMarkerComplete
Gets or sets the client drawing marker complete event handler.
Declaration
public string OnClientMarkerComplete { get; set; }
Property Value
Type | Description |
---|---|
System.String |
OnClientOverlayComplete
Gets or sets the client drawing overlay complete event handler.
Declaration
public string OnClientOverlayComplete { get; set; }
Property Value
Type | Description |
---|---|
System.String |
OnClientPolygonComplete
Gets or sets the client drawing polygon complete event handler.
Declaration
public string OnClientPolygonComplete { get; set; }
Property Value
Type | Description |
---|---|
System.String |
OnClientPolylineComplete
Gets or sets the client drawing polyline complete event handler.
Declaration
public string OnClientPolylineComplete { get; set; }
Property Value
Type | Description |
---|---|
System.String |
OnClientRectangleComplete
Gets or sets the client drawing rectangle complete event handler.
Declaration
public string OnClientRectangleComplete { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PolygonOptions
Defines the options to apply to any new polygons created with this DrawingManager.
Declaration
[PersistenceMode(PersistenceMode.InnerProperty)]
public DrawingPolygonOptions PolygonOptions { get; set; }
Property Value
Type | Description |
---|---|
DrawingPolygonOptions |
PolylineOptions
Defines the options to apply to any new polylines created with this DrawingManager.
Declaration
[PersistenceMode(PersistenceMode.InnerProperty)]
public DrawingPolylineOptions PolylineOptions { get; set; }
Property Value
Type | Description |
---|---|
DrawingPolylineOptions |
RectangleOptions
Defines the options to apply to any new rectangles created with this DrawingManager.
Declaration
[PersistenceMode(PersistenceMode.InnerProperty)]
public DrawingRectangleOptions RectangleOptions { get; set; }
Property Value
Type | Description |
---|---|
DrawingRectangleOptions |
Methods
GetScriptDescriptors(Control)
Registers the System.Web.UI.ScriptDescriptor objects for the control.
Declaration
protected override IEnumerable<ScriptDescriptor> GetScriptDescriptors(Control targetControl)
Parameters
Type | Name | Description |
---|---|---|
System.Web.UI.Control | targetControl |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Web.UI.ScriptDescriptor> |
Overrides
GetScriptReferences()
Registers the script libraries for the control.
Declaration
protected override IEnumerable<ScriptReference> GetScriptReferences()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Web.UI.ScriptReference> |
Overrides
OnCircleComplete(DrawingCircleEventArgs)
Raises the CircleComplete event.
Declaration
protected virtual void OnCircleComplete(DrawingCircleEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
DrawingCircleEventArgs | e | the event arguments |
OnInit(EventArgs)
Raises the System.Web.UI.Control.Init event.
Declaration
protected override void OnInit(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | An System.EventArgs object that contains the event data. |
Overrides
OnMarkerComplete(DrawingMarkerEventArgs)
Raises the MarkerComplete event.
Declaration
protected virtual void OnMarkerComplete(DrawingMarkerEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
DrawingMarkerEventArgs | e |
OnOverlayComplete(DrawingOverlayEventArgs)
Raises the OverlayComplete event.
Declaration
protected virtual void OnOverlayComplete(DrawingOverlayEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
DrawingOverlayEventArgs | e |
OnPolygonComplete(DrawingPolygonEventArgs)
Raises the PolygonComplete event.
Declaration
protected virtual void OnPolygonComplete(DrawingPolygonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
DrawingPolygonEventArgs | e |
OnPolylineComplete(DrawingPolylineEventArgs)
Raises the PolylineComplete event.
Declaration
protected virtual void OnPolylineComplete(DrawingPolylineEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
DrawingPolylineEventArgs | e |
OnRectangleComplete(DrawingRectangleEventArgs)
Raises the RectangleComplete event.
Declaration
protected virtual void OnRectangleComplete(DrawingRectangleEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
DrawingRectangleEventArgs | e |
Events
CircleComplete
This event is fired when drawing circle is complete.
Declaration
public event EventHandler<DrawingCircleEventArgs> CircleComplete
Event Type
Type | Description |
---|---|
System.EventHandler<DrawingCircleEventArgs> |
MarkerComplete
This event is fired when drawing marker is complete.
Declaration
public event EventHandler<DrawingMarkerEventArgs> MarkerComplete
Event Type
Type | Description |
---|---|
System.EventHandler<DrawingMarkerEventArgs> |
OverlayComplete
This event is fired when drawing overlay is complete.
Declaration
public event EventHandler<DrawingOverlayEventArgs> OverlayComplete
Event Type
Type | Description |
---|---|
System.EventHandler<DrawingOverlayEventArgs> |
PolygonComplete
This event is fired when drawing polygon is complete.
Declaration
public event EventHandler<DrawingPolygonEventArgs> PolygonComplete
Event Type
Type | Description |
---|---|
System.EventHandler<DrawingPolygonEventArgs> |
PolylineComplete
This event is fired when drawing polyline is complete.
Declaration
public event EventHandler<DrawingPolylineEventArgs> PolylineComplete
Event Type
Type | Description |
---|---|
System.EventHandler<DrawingPolylineEventArgs> |
RectangleComplete
This event is fired when drawing rectangle is complete.
Declaration
public event EventHandler<DrawingRectangleEventArgs> RectangleComplete
Event Type
Type | Description |
---|---|
System.EventHandler<DrawingRectangleEventArgs> |
Explicit Interface Implementations
IPostBackEventHandler.RaisePostBackEvent(String)
When implemented by a class, enables a server control to process an event raised when a form is posted to the server.
Declaration
void IPostBackEventHandler.RaisePostBackEvent(string eventArgument)
Parameters
Type | Name | Description |
---|---|---|
System.String | eventArgument | A System.String that represents an optional event argument to be passed to the event handler. |