Class RadMapElement
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.RadMap.dll
Syntax
public class RadMapElement : BaseMapElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, IMapViewport
Constructors
RadMapElement()
Declaration
public RadMapElement()
Properties
CopyrightLabelElement
Gets the copyright label element that displays attribution information for the map data.
Declaration
public MapCopyrightLabelElement CopyrightLabelElement { get; }
Property Value
MapCopyrightLabelElement
|
LegendElement
Gets the legend element that displays explanatory information about the symbols used on the map.
Declaration
public MapLegendElement LegendElement { get; }
Property Value
MapLegendElement
|
MiniMapElement
Gets the mini map element that provides an overview of the map with the current viewport highlighted.
Declaration
public MiniMapElement MiniMapElement { get; }
Property Value
MiniMapElement
|
MiniMapSize
Gets or sets the size of the mini map overview.
Declaration
public Size MiniMapSize { get; set; }
Property Value
System.Drawing.Size
|
NavigationBarElement
NavigationBarLocation
ScaleIndicatorElement
Gets the scale indicator element that displays the current scale of the map.
Declaration
public MapScaleIndicatorElement ScaleIndicatorElement { get; }
Property Value
MapScaleIndicatorElement
|
SearchBarElement
Gets the search bar element that allows users to search for locations on the map.
Declaration
public MapSearchBarElement SearchBarElement { get; }
Property Value
MapSearchBarElement
|
ShowLegend
Gets or sets a value indicating whether the map legend is visible.
Declaration
public bool ShowLegend { get; set; }
Property Value
System.Boolean
|
ShowMiniMap
Gets or sets a value indicating whether the mini map overview is visible.
Declaration
public bool ShowMiniMap { get; set; }
Property Value
System.Boolean
|
ShowNavigationBar
ShowScaleIndicator
Gets or sets a value indicating whether the map scale indicator is visible.
Declaration
public bool ShowScaleIndicator { get; set; }
Property Value
System.Boolean
|
ShowSearchBar
Gets or sets a value indicating whether the map search bar is visible.
Declaration
public bool ShowSearchBar { get; set; }
Property Value
System.Boolean
|
VisualElementFactory
Gets or sets the factory responsible for creating map visual elements.
Declaration
public static MapVisualElementFactory VisualElementFactory { get; set; }
Property Value
MapVisualElementFactory
|
Methods
ArrangeOverride(SizeF)
Arranges and sizes the RadMapElement and its child elements.
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.Drawing.SizeF
finalSize
The final area within the parent that this element should use to arrange itself and its children. |
Returns
System.Drawing.SizeF
The actual size used by the element. |
Overrides
CreateChildElements()
Creates and initializes all child elements of the RadMapElement.
Declaration
protected override void CreateChildElements()
Overrides
CreateMapCopyrightLabelElement()
Creates a map copyright label element.
Declaration
protected virtual MapCopyrightLabelElement CreateMapCopyrightLabelElement()
Returns
MapCopyrightLabelElement |
CreateMapLegendElement()
Creates a map legend element.
Declaration
protected virtual MapLegendElement CreateMapLegendElement()
Returns
MapLegendElement |
CreateMapNavigationBarElement()
CreateMapScaleIndicatorElement()
Creates a map scale indicator element.
Declaration
protected virtual MapScaleIndicatorElement CreateMapScaleIndicatorElement()
Returns
MapScaleIndicatorElement |
CreateMiniMapElement()
Creates a new instance of the mini map element.
Declaration
protected virtual MiniMapElement CreateMiniMapElement()
Returns
MiniMapElement
A new instance of the MiniMapElement class. |
CreateSearchBarElement()
Creates a search bar element.
Declaration
protected virtual MapSearchBarElement CreateSearchBarElement()
Returns
MapSearchBarElement |
DisposeManagedResources()
Releases the managed resources used by the RadMapElement.
Declaration
protected override void DisposeManagedResources()
Overrides
DoMouseHover(EventArgs)
Performs the hover operation if the element is able to respond to mouse events.
Declaration
protected override void DoMouseHover(EventArgs e)
Parameters
System.EventArgs
e
The System.EventArgs instance containing the event data. |
Overrides
InitializeFields()
Initializes the fields of the RadMapElement class with their default values.
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Measures the size required for child elements and determines a size for the RadMapElement.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
The available size that this element can give to child elements. |
Returns
System.Drawing.SizeF
The size that this element determines it needs during layout, based on its calculations of child element sizes. |
Overrides
OnProviderInitializationComplete(IMapProvider)
Called when a map provider initialization has been completed.
Declaration
public override void OnProviderInitializationComplete(IMapProvider mapProvider)
Parameters
IMapProvider
mapProvider
The map provider that has been initialized. |
Overrides
OnRadMapLocalizationProviderCurrentProviderChanged(Object, EventArgs)
Handles the event raised when the current localization provider changes.
Declaration
protected virtual void OnRadMapLocalizationProviderCurrentProviderChanged(object sender, EventArgs e)
Parameters
System.Object
sender
The source of the event. |
System.EventArgs
e
The System.EventArgs instance containing the event data. |
PaintProvidersContent(IGraphics)
Paints the content from all map providers.
Declaration
protected override void PaintProvidersContent(IGraphics graphics)
Parameters
IGraphics
graphics
The graphics context used for painting. |
Overrides
ShouldArrangeChild(RadElement)
Determines whether the specified child element should be arranged during the arrange pass.
Declaration
protected override bool ShouldArrangeChild(RadElement child)
Parameters
RadElement
child
The child element to check. |
Returns
System.Boolean
|
Overrides
ShouldMeasureChild(RadElement)
Determines whether the specified child element should be measured during the measure pass.
Declaration
protected override bool ShouldMeasureChild(RadElement child)
Parameters
RadElement
child
The child element to check. |
Returns
System.Boolean
|