Show / Hide Table of Contents

Class GooglePolyline

To draw a line on your map, use a polyline. The Polyline class defines a linear overlay of connected line segments on the map. A Polyline object consists of an array of LatLng locations, and creates a series of line segments that connect those locations in an ordered sequence.

Inheritance
System.Object
System.Web.UI.Control
System.Web.UI.ExtenderControl
GooglePolyline
Inherited Members
System.Web.UI.ExtenderControl.OnPreRender(System.EventArgs)
System.Web.UI.ExtenderControl.Render(System.Web.UI.HtmlTextWriter)
System.Web.UI.ExtenderControl.System.Web.UI.IExtenderControl.GetScriptDescriptors(System.Web.UI.Control)
System.Web.UI.ExtenderControl.System.Web.UI.IExtenderControl.GetScriptReferences()
System.Web.UI.ExtenderControl.TargetControlID
System.Web.UI.Control.ResolveAdapter()
System.Web.UI.Control.HasEvents()
System.Web.UI.Control.GetRouteUrl(System.Object)
System.Web.UI.Control.GetRouteUrl(System.String, System.Object)
System.Web.UI.Control.GetRouteUrl(System.Web.Routing.RouteValueDictionary)
System.Web.UI.Control.GetRouteUrl(System.String, System.Web.Routing.RouteValueDictionary)
System.Web.UI.Control.GetUniqueIDRelativeTo(System.Web.UI.Control)
System.Web.UI.Control.ApplyStyleSheetSkin(System.Web.UI.Page)
System.Web.UI.Control.OnDataBinding(System.EventArgs)
System.Web.UI.Control.DataBind()
System.Web.UI.Control.DataBind(System.Boolean)
System.Web.UI.Control.DataBindChildren()
System.Web.UI.Control.AddParsedSubObject(System.Object)
System.Web.UI.Control.EnsureID()
System.Web.UI.Control.OnInit(System.EventArgs)
System.Web.UI.Control.ClearChildState()
System.Web.UI.Control.ClearChildControlState()
System.Web.UI.Control.ClearChildViewState()
System.Web.UI.Control.ClearEffectiveClientIDMode()
System.Web.UI.Control.ClearCachedClientID()
System.Web.UI.Control.Focus()
System.Web.UI.Control.LoadControlState(System.Object)
System.Web.UI.Control.LoadViewState(System.Object)
System.Web.UI.Control.MapPathSecure(System.String)
System.Web.UI.Control.OpenFile(System.String)
System.Web.UI.Control.OnLoad(System.EventArgs)
System.Web.UI.Control.BuildProfileTree(System.String, System.Boolean)
System.Web.UI.Control.SaveControlState()
System.Web.UI.Control.SaveViewState()
System.Web.UI.Control.RenderChildren(System.Web.UI.HtmlTextWriter)
System.Web.UI.Control.RenderControl(System.Web.UI.HtmlTextWriter)
System.Web.UI.Control.RenderControl(System.Web.UI.HtmlTextWriter, System.Web.UI.Adapters.ControlAdapter)
System.Web.UI.Control.OnUnload(System.EventArgs)
System.Web.UI.Control.Dispose()
System.Web.UI.Control.RaiseBubbleEvent(System.Object, System.EventArgs)
System.Web.UI.Control.OnBubbleEvent(System.Object, System.EventArgs)
System.Web.UI.Control.AddedControl(System.Web.UI.Control, System.Int32)
System.Web.UI.Control.CreateControlCollection()
System.Web.UI.Control.CreateChildControls()
System.Web.UI.Control.ResolveUrl(System.String)
System.Web.UI.Control.ResolveClientUrl(System.String)
System.Web.UI.Control.FindControl(System.String)
System.Web.UI.Control.FindControl(System.String, System.Int32)
System.Web.UI.Control.GetDesignModeState()
System.Web.UI.Control.HasControls()
System.Web.UI.Control.IsLiteralContent()
System.Web.UI.Control.TrackViewState()
System.Web.UI.Control.EnsureChildControls()
System.Web.UI.Control.RemovedControl(System.Web.UI.Control)
System.Web.UI.Control.SetDesignModeState(System.Collections.IDictionary)
System.Web.UI.Control.SetRenderMethodDelegate(System.Web.UI.RenderMethod)
System.Web.UI.Control.System.Web.UI.IParserAccessor.AddParsedSubObject(System.Object)
System.Web.UI.Control.System.Web.UI.IControlDesignerAccessor.GetDesignModeState()
System.Web.UI.Control.System.Web.UI.IControlDesignerAccessor.SetDesignModeState(System.Collections.IDictionary)
System.Web.UI.Control.System.Web.UI.IControlDesignerAccessor.SetOwnerControl(System.Web.UI.Control)
System.Web.UI.Control.ClientIDMode
System.Web.UI.Control.ClientID
System.Web.UI.Control.ClientIDSeparator
System.Web.UI.Control.Context
System.Web.UI.Control.Adapter
System.Web.UI.Control.DesignMode
System.Web.UI.Control.Events
System.Web.UI.Control.ID
System.Web.UI.Control.EnableTheming
System.Web.UI.Control.IsChildControlStateCleared
System.Web.UI.Control.SkinID
System.Web.UI.Control.EnableViewState
System.Web.UI.Control.ViewStateMode
System.Web.UI.Control.IsViewStateEnabled
System.Web.UI.Control.NamingContainer
System.Web.UI.Control.IdSeparator
System.Web.UI.Control.LoadViewStateByID
System.Web.UI.Control.Page
System.Web.UI.Control.RenderingCompatibility
System.Web.UI.Control.TemplateControl
System.Web.UI.Control.Parent
System.Web.UI.Control.TemplateSourceDirectory
System.Web.UI.Control.AppRelativeTemplateSourceDirectory
System.Web.UI.Control.Site
System.Web.UI.Control.Visible
System.Web.UI.Control.UniqueID
System.Web.UI.Control.HasChildViewState
System.Web.UI.Control.Controls
System.Web.UI.Control.ViewState
System.Web.UI.Control.ViewStateIgnoresCase
System.Web.UI.Control.ChildControlsCreated
System.Web.UI.Control.IsTrackingViewState
System.Web.UI.Control.System.Web.UI.IDataBindingsAccessor.HasDataBindings
System.Web.UI.Control.System.Web.UI.IDataBindingsAccessor.DataBindings
System.Web.UI.Control.System.Web.UI.IControlDesignerAccessor.UserData
System.Web.UI.Control.System.Web.UI.IControlBuilderAccessor.ControlBuilder
System.Web.UI.Control.System.Web.UI.IExpressionsAccessor.HasExpressions
System.Web.UI.Control.System.Web.UI.IExpressionsAccessor.Expressions
System.Web.UI.Control.Disposed
System.Web.UI.Control.DataBinding
System.Web.UI.Control.Init
System.Web.UI.Control.Load
System.Web.UI.Control.PreRender
System.Web.UI.Control.Unload
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace:GoogleMaps.Polylines
Assembly:GoogleMaps.dll
Syntax
public class GooglePolyline : ExtenderControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IExtenderControl, IPostBackEventHandler

Properties

Clickable

Gets or sets a value indicating whether this polyline is clickable.

Declaration
[Browsable(true)]
public bool Clickable { get; set; }
Property Value
Type Description
System.Boolean

true if this instance is clickable; otherwise, false.

Draggable

If set to true, the user can drag this shape over the map. The Geodesic property defines the mode of dragging. Defaults to false.

Declaration
[Browsable(true)]
public bool Draggable { get; set; }
Property Value
Type Description
System.Boolean

Editable

If set to true, the user can edit this shape by dragging the control points shown at the vertices and on each segment. Defaults to false.

Declaration
[Browsable(true)]
public bool Editable { get; set; }
Property Value
Type Description
System.Boolean

Geodesic

Gets or sets a value indicating whether this GooglePolyline is 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

true if geodesic; otherwise, false.

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.

Path

The ordered sequence of coordinates of the Polyline. This path is specified using an array of LatLngs.

Declaration
[Browsable(true)]
[PersistenceMode(PersistenceMode.InnerDefaultProperty)]
public List<LatLng> Path { get; set; }
Property Value
Type Description
System.Collections.Generic.List<LatLng>

The path.

StrokeColor

Gets or sets a value for stroke color of the polyline.

Declaration
[Browsable(true)]
public Color StrokeColor { get; set; }
Property Value
Type Description
System.Drawing.Color

The color.

StrokeOpacity

Gets or sets the opacity of polyline. The opacity is given as a number between 0 and 1. The line will be antialiased and semitransparent.

Declaration
[Browsable(true)]
public float StrokeOpacity { get; set; }
Property Value
Type Description
System.Single

The opacity.

StrokeWeight

Gets or sets the weight of polyline. The weight is the width of the line in pixels.

Declaration
[Browsable(true)]
public int StrokeWeight { get; set; }
Property Value
Type Description
System.Int32

The weight.

ZIndex

The zIndex compared to other polys.

Declaration
[Browsable(true)]
public int ZIndex { get; set; }
Property Value
Type Description
System.Int32

The index.

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
System.Web.UI.ExtenderControl.GetScriptDescriptors(System.Web.UI.Control)

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
System.Web.UI.ExtenderControl.GetScriptReferences()

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 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.

Implements
System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(System.String)

Events

Click

This event is fired when the DOM click event is fired on the Polyline.

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 Polyline.

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 Polyline.

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 Polyline.

Declaration
public event EventHandler<MouseEventArgs> MouseMove
Event Type
Type Description
System.EventHandler<MouseEventArgs>

MouseOut

This event is fired on Polyline mouseout.

Declaration
public event EventHandler<MouseEventArgs> MouseOut
Event Type
Type Description
System.EventHandler<MouseEventArgs>

MouseOver

This event is fired on Polyline 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 Polyline.

Declaration
public event EventHandler<MouseEventArgs> MouseUp
Event Type
Type Description
System.EventHandler<MouseEventArgs>

RightClick

This event is fired when the Polyline is right-clicked on.

Declaration
public event EventHandler<MouseEventArgs> RightClick
Event Type
Type Description
System.EventHandler<MouseEventArgs>
Back to top Copyright © 2017 GoogleMapControl
Generated by DocFX