Class GooglePolygon
Polygon (like a polyline) defines a series of connected coordinates in an ordered sequence; additionally, Overlays form a closed loop and define a filled region.
Inheritance
Inherited Members
Namespace:GoogleMaps.Overlays
Assembly:GoogleMaps.dll
Syntax
public class GooglePolygon : GoogleOverlay, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IExtenderControl, IPostBackEventHandler
              Properties
FillColor
The fill color. All CSS3 colors are supported except for extended named colors.
Declaration
[Browsable(true)]
public Color FillColor { get; set; }
              Property Value
| Type | Description | 
|---|---|
| System.Drawing.Color | The color of the fill.  | 
                  
FillOpacity
The fill opacity between 0.0 and 1.0
Declaration
[Browsable(true)]
public float FillOpacity { get; set; }
              Property Value
| Type | Description | 
|---|---|
| System.Single | The fill opacity.  | 
                  
Geodesic
Render each edge as a geodesic (a segment of a "great circle"). A geodesic is the shortest path between two points along the surface of the Earth.
Declaration
[Browsable(true)]
public bool Geodesic { get; set; }
              Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
  | 
                  
OnClientClick
Gets or sets the on client click handler.
Declaration
public string OnClientClick { get; set; }
              Property Value
| Type | Description | 
|---|---|
| System.String | The on client click.  | 
                  
OnClientDoubleClick
Gets or sets the on client double click handler.
Declaration
public string OnClientDoubleClick { get; set; }
              Property Value
| Type | Description | 
|---|---|
| System.String | The on client double click.  | 
                  
OnClientMouseDown
Gets or sets the on client mouse down handler.
Declaration
public string OnClientMouseDown { get; set; }
              Property Value
| Type | Description | 
|---|---|
| System.String | The on client mouse down.  | 
                  
OnClientMouseMove
Gets or sets the on client mouse move handler.
Declaration
public string OnClientMouseMove { get; set; }
              Property Value
| Type | Description | 
|---|---|
| System.String | The on client mouse move.  | 
                  
OnClientMouseOut
Gets or sets the on client mouse out handler.
Declaration
public string OnClientMouseOut { get; set; }
              Property Value
| Type | Description | 
|---|---|
| System.String | The on client mouse out.  | 
                  
OnClientMouseOver
Gets or sets the on client mouse over handler.
Declaration
public string OnClientMouseOver { get; set; }
              Property Value
| Type | Description | 
|---|---|
| System.String | The on client mouse over.  | 
                  
OnClientMouseUp
Gets or sets the on client mouse up handler.
Declaration
public string OnClientMouseUp { get; set; }
              Property Value
| Type | Description | 
|---|---|
| System.String | The on client mouse up.  | 
                  
OnClientRightClick
Gets or sets the on client right click handler.
Declaration
public string OnClientRightClick { get; set; }
              Property Value
| Type | Description | 
|---|---|
| System.String | The on client right click.  | 
                  
Paths
Gets or sets the points.
Declaration
[Browsable(true)]
[PersistenceMode(PersistenceMode.InnerProperty)]
public List<LatLng> Paths { get; set; }
              Property Value
| Type | Description | 
|---|---|
| System.Collections.Generic.List<LatLng> | The points.  | 
                  
StrokeColor
The stroke color. All CSS3 colors are supported except for extended named colors.
Declaration
[Browsable(true)]
public Color StrokeColor { get; set; }
              Property Value
| Type | Description | 
|---|---|
| System.Drawing.Color | The color of the stroke.  | 
                  
StrokeOpacity
The stroke opacity between 0.0 and 1.0
Declaration
[Browsable(true)]
public float StrokeOpacity { get; set; }
              Property Value
| Type | Description | 
|---|---|
| System.Single | The stroke opacity.  | 
                  
StrokeWeight
The stroke width in pixels.
Declaration
[Browsable(true)]
public int StrokeWeight { get; set; }
              Property Value
| Type | Description | 
|---|---|
| System.Int32 | The stroke weight.  | 
                  
ZIndex
The zIndex compared to other polys.
Declaration
[Browsable(true)]
public int ZIndex { get; set; }
              Property Value
| Type | Description | 
|---|---|
| System.Int32 | The index of the Z.  | 
                  
Methods
GetScriptDescriptors(Control)
When overridden in a derived class, 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 | The server control to which the extender is associated.  | 
                  
Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.IEnumerable<System.Web.UI.ScriptDescriptor> | An enumeration of System.Web.UI.ScriptDescriptor objects.  | 
                  
Overrides
GetScriptReferences()
When overridden in a derived class, registers the script libraries for the control.
Declaration
protected override IEnumerable<ScriptReference> GetScriptReferences()
              Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.IEnumerable<System.Web.UI.ScriptReference> | An object that implements the System.Collections.IEnumerable interface and that contains ECMAScript (JavaScript) files that have been registered as embedded resources.  | 
                  
Overrides
OnClick(MouseEventArgs)
Raises the Click event.
Declaration
protected virtual void OnClick(MouseEventArgs e)
              Parameters
| Type | Name | Description | 
|---|---|---|
| MouseEventArgs | e | The MouseEventArgs instance containing the event data.  | 
                  
OnDoubleClick(MouseEventArgs)
Raises the DoubleClick event.
Declaration
protected virtual void OnDoubleClick(MouseEventArgs e)
              Parameters
| Type | Name | Description | 
|---|---|---|
| MouseEventArgs | e | The MouseEventArgs instance containing the event data.  | 
                  
OnMouseDown(MouseEventArgs)
Raises the MouseDown event.
Declaration
protected virtual void OnMouseDown(MouseEventArgs e)
              Parameters
| Type | Name | Description | 
|---|---|---|
| MouseEventArgs | e | The MouseEventArgs instance containing the event data.  | 
                  
OnMouseMove(MouseEventArgs)
Raises the MouseMove event.
Declaration
protected virtual void OnMouseMove(MouseEventArgs e)
              Parameters
| Type | Name | Description | 
|---|---|---|
| MouseEventArgs | e | The MouseEventArgs instance containing the event data.  | 
                  
OnMouseOut(MouseEventArgs)
Raises the MouseOut event.
Declaration
protected virtual void OnMouseOut(MouseEventArgs e)
              Parameters
| Type | Name | Description | 
|---|---|---|
| MouseEventArgs | e | The MouseEventArgs instance containing the event data.  | 
                  
OnMouseOver(MouseEventArgs)
Raises the MouseOver event.
Declaration
protected virtual void OnMouseOver(MouseEventArgs e)
              Parameters
| Type | Name | Description | 
|---|---|---|
| MouseEventArgs | e | The MouseEventArgs instance containing the event data.  | 
                  
OnMouseUp(MouseEventArgs)
Raises the MouseUp event.
Declaration
protected virtual void OnMouseUp(MouseEventArgs e)
              Parameters
| Type | Name | Description | 
|---|---|---|
| MouseEventArgs | e | The MouseEventArgs instance containing the event data.  | 
                  
OnRightClick(MouseEventArgs)
Raises the RightClick event.
Declaration
protected virtual void OnRightClick(MouseEventArgs e)
              Parameters
| Type | Name | Description | 
|---|---|---|
| MouseEventArgs | e | The MouseEventArgs instance containing the event data.  | 
                  
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
public override void 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.  | 
                  
Overrides
Events
Click
This event is fired when the DOM click event is fired on the Polygon.
Declaration
public event EventHandler<MouseEventArgs> Click
              Event Type
| Type | Description | 
|---|---|
| System.EventHandler<MouseEventArgs> | 
DoubleClick
This event is fired when the DOM dblclick event is fired on the Polygon.
Declaration
public event EventHandler<MouseEventArgs> DoubleClick
              Event Type
| Type | Description | 
|---|---|
| System.EventHandler<MouseEventArgs> | 
MouseDown
This event is fired when the DOM mousedown event is fired on the Polygon.
Declaration
public event EventHandler<MouseEventArgs> MouseDown
              Event Type
| Type | Description | 
|---|---|
| System.EventHandler<MouseEventArgs> | 
MouseMove
This event is fired when the DOM mousemove event is fired on the Polygon.
Declaration
public event EventHandler<MouseEventArgs> MouseMove
              Event Type
| Type | Description | 
|---|---|
| System.EventHandler<MouseEventArgs> | 
MouseOut
This event is fired on Polygon mouseout.
Declaration
public event EventHandler<MouseEventArgs> MouseOut
              Event Type
| Type | Description | 
|---|---|
| System.EventHandler<MouseEventArgs> | 
MouseOver
This event is fired on Polygon mouseover.
Declaration
public event EventHandler<MouseEventArgs> MouseOver
              Event Type
| Type | Description | 
|---|---|
| System.EventHandler<MouseEventArgs> | 
MouseUp
This event is fired when the DOM mouseup event is fired on the Polygon.
Declaration
public event EventHandler<MouseEventArgs> MouseUp
              Event Type
| Type | Description | 
|---|---|
| System.EventHandler<MouseEventArgs> | 
RightClick
This event is fired when the Polygon is right-clicked on.
Declaration
public event EventHandler<MouseEventArgs> RightClick
              Event Type
| Type | Description | 
|---|---|
| System.EventHandler<MouseEventArgs> |