Class GoogleMarkers
Extender control which targets GoogleMap control and adds the markers overlays to the google map.
Inheritance
Inherited Members
Namespace:GoogleMaps.Markers
Assembly:GoogleMaps.dll
Syntax
public class GoogleMarkers : DataBoundControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IExtenderControl, IPostBackEventHandler
Properties
DataAddressField
Gets or sets the data address field.
Declaration
public string DataAddressField { get; set; }
Property Value
Type | Description |
---|---|
System.String | The data address field. |
DataIconField
Gets or sets the data icon field.
Declaration
public string DataIconField { get; set; }
Property Value
Type | Description |
---|---|
System.String | The data icon field. |
DataInfoField
Gets or sets the data info field.
Declaration
public string DataInfoField { get; set; }
Property Value
Type | Description |
---|---|
System.String | The data info field. |
DataLatitudeField
Gets or sets the data latitude field.
Declaration
public string DataLatitudeField { get; set; }
Property Value
Type | Description |
---|---|
System.String | The data latitude field. |
DataLongitudeField
Gets or sets the data longitude field.
Declaration
public string DataLongitudeField { get; set; }
Property Value
Type | Description |
---|---|
System.String | The data longitude field. |
FitBounds
Fits the Google map to the bounds of the markers.
Declaration
public bool FitBounds { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
InfoWindowOptions
Options for the markers' info wondows. All markers' info windows will use these options.
Declaration
[PersistenceMode(PersistenceMode.InnerProperty)]
public InfoWindowOptions InfoWindowOptions { get; set; }
Property Value
Type | Description |
---|---|
InfoWindowOptions | The info window options. |
MarkerClusterer
Manages per-zoom-level clusters for large amounts of markers.
Declaration
[PersistenceMode(PersistenceMode.InnerProperty)]
public MarkerClusterer MarkerClusterer { get; set; }
Property Value
Type | Description |
---|---|
MarkerClusterer |
MarkerManager
An interface between the map and the user, designed to manage adding and removing many points when the viewport changes.
Declaration
[PersistenceMode(PersistenceMode.InnerProperty)]
public MarkerManager MarkerManager { get; set; }
Property Value
Type | Description |
---|---|
MarkerManager |
MarkerOptions
Options for the markers. All markers rendered will use these options.
Declaration
[PersistenceMode(PersistenceMode.InnerProperty)]
public MarkerOptions MarkerOptions { get; set; }
Property Value
Type | Description |
---|---|
MarkerOptions | The marker options. |
Markers
Markers to be rendered to target map control.
Declaration
[PersistenceMode(PersistenceMode.InnerProperty)]
public List<Marker> Markers { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Marker> | The markers. |
OnClientAnimationChanged
Gets or sets the client animation changed handler.
Declaration
public string OnClientAnimationChanged { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client animation changed handler. |
OnClientClick
Gets or sets the client click handler.
Declaration
public string OnClientClick { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client click handler. |
OnClientClickableChanged
Gets or sets the client clickable property changed handler.
Declaration
public string OnClientClickableChanged { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client handler. |
OnClientCursorChanged
Gets or sets the client cursor property changed handler.
Declaration
public string OnClientCursorChanged { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client handler. |
OnClientDoubleClick
Gets or sets the client double click handler.
Declaration
public string OnClientDoubleClick { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client handler. |
OnClientDrag
Gets or sets the client drag handler.
Declaration
public string OnClientDrag { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client handler. |
OnClientDragEnd
Gets or sets the client drag end handler.
Declaration
public string OnClientDragEnd { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client handler. |
OnClientDraggableChanged
Gets or sets the client draggable property changed handler.
Declaration
public string OnClientDraggableChanged { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client hanlder. |
OnClientDragStart
Gets or sets the client drag start handler.
Declaration
public string OnClientDragStart { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client handler. |
OnClientFlatChanged
Gets or sets the client flat property changed handler.
Declaration
public string OnClientFlatChanged { get; set; }
Property Value
Type | Description |
---|---|
System.String | The on client flat property changed handler. |
OnClientIconChanged
Gets or sets the client icon property changed handler.
Declaration
public string OnClientIconChanged { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client icon property changed handler. |
OnClientMouseDown
Gets or sets the client mouse down handler.
Declaration
public string OnClientMouseDown { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client handler. |
OnClientMouseOut
Gets or sets the client mouse out handler.
Declaration
public string OnClientMouseOut { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client handler. |
OnClientMouseOver
Gets or sets the client mouse over handler.
Declaration
public string OnClientMouseOver { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client handler. |
OnClientMouseUp
Gets or sets the client mouse up handler.
Declaration
public string OnClientMouseUp { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client handler. |
OnClientPositionChanged
Gets or sets the client marker position property changed handler.
Declaration
public string OnClientPositionChanged { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client handler. |
OnClientRightClick
Gets or sets the client right click handler.
Declaration
public string OnClientRightClick { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client right click handler. |
OnClientShadowChanged
Gets or sets the client marker's shadow property changed handler.
Declaration
public string OnClientShadowChanged { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client handler. |
OnClientShapeChanged
Gets or sets the client marker's shape property changed handler.
Declaration
public string OnClientShapeChanged { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client handler. |
OnClientTitleChanged
Gets or sets the client marker's title property changed handler.
Declaration
public string OnClientTitleChanged { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client handler. |
OnClientVisibleChanged
Gets or sets the client marker's visible property changed handler.
Declaration
public string OnClientVisibleChanged { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client handler. |
OnClientZIndexChanged
Gets or sets the client marker's zIndex property changed handler.
Declaration
public string OnClientZIndexChanged { get; set; }
Property Value
Type | Description |
---|---|
System.String | The client handler. |
TagKey
Declaration
protected override HtmlTextWriterTag TagKey { get; }
Property Value
Type | Description |
---|---|
System.Web.UI.HtmlTextWriterTag |
Overrides
TargetControlID
Gets or sets the target control ID.
Declaration
public string TargetControlID { get; set; }
Property Value
Type | Description |
---|---|
System.String | The target control ID. |
Methods
CreateChildControls()
Declaration
protected override void CreateChildControls()
Overrides
OnAnimationChanged(MarkerEventArgs)
Raises the AnimationChanged event.
Declaration
protected virtual void OnAnimationChanged(MarkerEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MarkerEventArgs | e | The System.EventArgs instance containing the event data. |
OnClick(MarkerEventArgs)
Raises the Click event.
Declaration
protected virtual void OnClick(MarkerEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MarkerEventArgs | e | The MouseEventArgs instance containing the event data. |
OnClickableChanged(MarkerEventArgs)
Raises the ClickableChanged event.
Declaration
protected virtual void OnClickableChanged(MarkerEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MarkerEventArgs | e | The MarkerEventArgs instance containing the event data. |
OnCursorChanged(MarkerEventArgs)
Raises the CursorChanged event.
Declaration
protected virtual void OnCursorChanged(MarkerEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MarkerEventArgs | e | The MarkerEventArgs instance containing the event data. |
OnDoubleClick(MarkerEventArgs)
Raises the DoubleClick event.
Declaration
protected virtual void OnDoubleClick(MarkerEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MarkerEventArgs | e | The MouseEventArgs instance containing the event data. |
OnDrag(MarkerEventArgs)
Raises the Drag event.
Declaration
protected virtual void OnDrag(MarkerEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MarkerEventArgs | e | The MouseEventArgs instance containing the event data. |
OnDragEnd(MarkerEventArgs)
Raises the DragEnd event.
Declaration
protected virtual void OnDragEnd(MarkerEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MarkerEventArgs | e | The MouseEventArgs instance containing the event data. |
OnDraggableChanged(MarkerEventArgs)
Raises the DraggableChanged event.
Declaration
protected virtual void OnDraggableChanged(MarkerEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MarkerEventArgs | e | The MarkerEventArgs instance containing the event data. |
OnDragStart(MarkerEventArgs)
Raises the DragStart event.
Declaration
protected virtual void OnDragStart(MarkerEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MarkerEventArgs | e | The MouseEventArgs instance containing the event data. |
OnFlatChanged(MarkerEventArgs)
Raises the FlatChanged event.
Declaration
protected virtual void OnFlatChanged(MarkerEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MarkerEventArgs | e | The MarkerEventArgs instance containing the event data. |
OnIconChanged(MarkerEventArgs)
Raises the IconChanged event.
Declaration
protected virtual void OnIconChanged(MarkerEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MarkerEventArgs | e | The MarkerEventArgs instance containing the event data. |
OnMouseDown(MarkerEventArgs)
Raises the MouseDown event.
Declaration
protected virtual void OnMouseDown(MarkerEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MarkerEventArgs | e | The MouseEventArgs instance containing the event data. |
OnMouseOut(MarkerEventArgs)
Raises the MouseOut event.
Declaration
protected virtual void OnMouseOut(MarkerEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MarkerEventArgs | e | The MouseEventArgs instance containing the event data. |
OnMouseOver(MarkerEventArgs)
Raises the MouseOver event.
Declaration
protected virtual void OnMouseOver(MarkerEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MarkerEventArgs | e | The MouseEventArgs instance containing the event data. |
OnMouseUp(MarkerEventArgs)
Raises the MouseUp event.
Declaration
protected virtual void OnMouseUp(MarkerEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MarkerEventArgs | e | The MouseEventArgs instance containing the event data. |
OnPositionChanged(MarkerEventArgs)
Raises the PositionChanged event.
Declaration
protected virtual void OnPositionChanged(MarkerEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MarkerEventArgs | e | The MarkerEventArgs instance containing the event data. |
OnPreRender(EventArgs)
Handles the System.Web.UI.Control.PreRender event.
Declaration
protected override void OnPreRender(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | An System.EventArgs object that contains the event data. |
Overrides
OnRightClick(MarkerEventArgs)
Raises the RightClick event.
Declaration
protected virtual void OnRightClick(MarkerEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MarkerEventArgs | e | The MouseEventArgs instance containing the event data. |
OnShadowChanged(MarkerEventArgs)
Raises the ShadowChanged event.
Declaration
protected virtual void OnShadowChanged(MarkerEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MarkerEventArgs | e | The MarkerEventArgs instance containing the event data. |
OnShapeChanged(MarkerEventArgs)
Raises the ShapeChanged event.
Declaration
protected virtual void OnShapeChanged(MarkerEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MarkerEventArgs | e | The MarkerEventArgs instance containing the event data. |
OnTitleChanged(MarkerEventArgs)
Raises the TitleChanged event.
Declaration
protected virtual void OnTitleChanged(MarkerEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MarkerEventArgs | e | The MarkerEventArgs instance containing the event data. |
OnVisibleChanged(MarkerEventArgs)
Raises the VisibleChanged event.
Declaration
protected virtual void OnVisibleChanged(MarkerEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MarkerEventArgs | e | The MarkerEventArgs instance containing the event data. |
OnZIndexChanged(MarkerEventArgs)
Raises the ZIndexChanged event.
Declaration
protected virtual void OnZIndexChanged(MarkerEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MarkerEventArgs | e | The MarkerEventArgs instance containing the event data. |
PerformDataBinding(IEnumerable)
When overridden in a derived class, binds data from the data source to the control.
Declaration
protected override void PerformDataBinding(IEnumerable data)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerable | data | The System.Collections.IEnumerable list of data returned from a System.Web.UI.WebControls.DataBoundControl.PerformSelect() method call. |
Overrides
PerformSelect()
Retrieves data from the associated data source.
Declaration
protected override void PerformSelect()
Overrides
Render(HtmlTextWriter)
Renders the control to the specified HTML writer.
Declaration
protected override void Render(HtmlTextWriter writer)
Parameters
Type | Name | Description |
---|---|---|
System.Web.UI.HtmlTextWriter | writer | The System.Web.UI.HtmlTextWriter object that receives the control content. |
Overrides
RenderBeginTag(HtmlTextWriter)
Declaration
public override void RenderBeginTag(HtmlTextWriter writer)
Parameters
Type | Name | Description |
---|---|---|
System.Web.UI.HtmlTextWriter | writer |
Overrides
Events
AnimationChanged
This event is fired when the marker icon was clicked.
Declaration
public event EventHandler<MarkerEventArgs> AnimationChanged
Event Type
Type | Description |
---|---|
System.EventHandler<MarkerEventArgs> |
Click
This event is fired when the marker icon was clicked.
Declaration
public event EventHandler<MarkerEventArgs> Click
Event Type
Type | Description |
---|---|
System.EventHandler<MarkerEventArgs> |
ClickableChanged
This event is fired when the marker clickable property was changed.
Declaration
public event EventHandler<MarkerEventArgs> ClickableChanged
Event Type
Type | Description |
---|---|
System.EventHandler<MarkerEventArgs> |
CursorChanged
This event is fired when the marker's cursor property changes.
Declaration
public event EventHandler<MarkerEventArgs> CursorChanged
Event Type
Type | Description |
---|---|
System.EventHandler<MarkerEventArgs> |
DoubleClick
This event is fired when the marker icon was double clicked.
Declaration
public event EventHandler<MarkerEventArgs> DoubleClick
Event Type
Type | Description |
---|---|
System.EventHandler<MarkerEventArgs> |
Drag
This event is repeatedly fired while the user drags the marker.
Declaration
public event EventHandler<MarkerEventArgs> Drag
Event Type
Type | Description |
---|---|
System.EventHandler<MarkerEventArgs> |
DragEnd
This event is fired when the user stops dragging the marker.
Declaration
public event EventHandler<MarkerEventArgs> DragEnd
Event Type
Type | Description |
---|---|
System.EventHandler<MarkerEventArgs> |
DraggableChanged
This event is fired when the marker's draggable property changes.
Declaration
public event EventHandler<MarkerEventArgs> DraggableChanged
Event Type
Type | Description |
---|---|
System.EventHandler<MarkerEventArgs> |
DragStart
This event is fired when the user starts dragging the marker.
Declaration
public event EventHandler<MarkerEventArgs> DragStart
Event Type
Type | Description |
---|---|
System.EventHandler<MarkerEventArgs> |
FlatChanged
This event is fired when the marker's flat property changes.
Declaration
public event EventHandler<MarkerEventArgs> FlatChanged
Event Type
Type | Description |
---|---|
System.EventHandler<MarkerEventArgs> |
IconChanged
This event is fired when the marker icon property changes.
Declaration
public event EventHandler<MarkerEventArgs> IconChanged
Event Type
Type | Description |
---|---|
System.EventHandler<MarkerEventArgs> |
MouseDown
This event is fired for a mousedown on the marker.
Declaration
public event EventHandler<MarkerEventArgs> MouseDown
Event Type
Type | Description |
---|---|
System.EventHandler<MarkerEventArgs> |
MouseOut
This event is fired when the mouse leaves the area of the marker icon.
Declaration
public event EventHandler<MarkerEventArgs> MouseOut
Event Type
Type | Description |
---|---|
System.EventHandler<MarkerEventArgs> |
MouseOver
This event is fired when the mouse enters the area of the marker icon.
Declaration
public event EventHandler<MarkerEventArgs> MouseOver
Event Type
Type | Description |
---|---|
System.EventHandler<MarkerEventArgs> |
MouseUp
This event is fired for a mouseup on the marker.
Declaration
public event EventHandler<MarkerEventArgs> MouseUp
Event Type
Type | Description |
---|---|
System.EventHandler<MarkerEventArgs> |
PositionChanged
This event is fired when the marker position property changes.
Declaration
public event EventHandler<MarkerEventArgs> PositionChanged
Event Type
Type | Description |
---|---|
System.EventHandler<MarkerEventArgs> |
RightClick
This event is fired for a rightclick on the marker.
Declaration
public event EventHandler<MarkerEventArgs> RightClick
Event Type
Type | Description |
---|---|
System.EventHandler<MarkerEventArgs> |
ShadowChanged
This event is fired when the marker's shadow property changes.
Declaration
public event EventHandler<MarkerEventArgs> ShadowChanged
Event Type
Type | Description |
---|---|
System.EventHandler<MarkerEventArgs> |
ShapeChanged
This event is fired when the marker's shape property changes.
Declaration
public event EventHandler<MarkerEventArgs> ShapeChanged
Event Type
Type | Description |
---|---|
System.EventHandler<MarkerEventArgs> |
TitleChanged
This event is fired when the marker title property changes.
Declaration
public event EventHandler<MarkerEventArgs> TitleChanged
Event Type
Type | Description |
---|---|
System.EventHandler<MarkerEventArgs> |
VisibleChanged
This event is fired when the marker's visible property changes.
Declaration
public event EventHandler<MarkerEventArgs> VisibleChanged
Event Type
Type | Description |
---|---|
System.EventHandler<MarkerEventArgs> |
ZIndexChanged
This event is fired when the marker's zIndex property changes.
Declaration
public event EventHandler<MarkerEventArgs> ZIndexChanged
Event Type
Type | Description |
---|---|
System.EventHandler<MarkerEventArgs> |
Explicit Interface Implementations
IExtenderControl.GetScriptDescriptors(Control)
Registers the System.Web.UI.ScriptDescriptor objects for the control and returns an object that contains the System.Web.UI.ScriptDescriptor objects for the control.
Declaration
IEnumerable<ScriptDescriptor> IExtenderControl.GetScriptDescriptors(Control targetControl)
Parameters
Type | Name | Description |
---|---|---|
System.Web.UI.Control | targetControl | The server control that the extender is associated with. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Web.UI.ScriptDescriptor> | An System.Collections.IEnumerable collection that contains System.Web.UI.ScriptDescriptor objects. |
Implements
IExtenderControl.GetScriptReferences()
Registers the script libraries for the control and returns an enumeration of ECMAScript (JavaScript) files that have been registered as embedded resources.
Declaration
IEnumerable<ScriptReference> IExtenderControl.GetScriptReferences()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Web.UI.ScriptReference> | An System.Collections.IEnumerable collection that contains JavaScript files that have been registered as embedded resources. |
Implements
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. |