ClassRadMapElement
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadMap.dll
Syntax:
public class RadMapElement : BaseMapElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, IMapViewport
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementBaseMapElementRadMapElement
Implements:
Inherited Members
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
LegendElement
Gets the legend element that displays explanatory information about the symbols used on the map.
Declaration
public MapLegendElement LegendElement { get; }
Property Value
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
MiniMapSize
Gets or sets the size of the mini map overview.
NavigationBarElement
Gets the navigation bar element that provides controls for panning and zooming the map.
Declaration
public MapNavigationBarElement NavigationBarElement { get; }
Property Value
NavigationBarLocation
Gets or sets the location of the navigation bar on the map.
Declaration
public MapNavigationBarLocation NavigationBarLocation { get; set; }
Property Value
ScaleIndicatorElement
Gets the scale indicator element that displays the current scale of the map.
Declaration
public MapScaleIndicatorElement ScaleIndicatorElement { get; }
Property Value
SearchBarElement
Gets the search bar element that allows users to search for locations on the map.
Declaration
public MapSearchBarElement SearchBarElement { get; }
Property Value
ShowLegend
Gets or sets a value indicating whether the map legend is visible.
ShowMiniMap
Gets or sets a value indicating whether the mini map overview is visible.
ShowNavigationBar
Gets or sets a value indicating whether the map navigation bar is visible.
ShowScaleIndicator
Gets or sets a value indicating whether the map scale indicator is visible.
ShowSearchBar
Gets or sets a value indicating whether the map search bar is visible.
VisualElementFactory
Gets or sets the factory responsible for creating map visual elements.
Declaration
public static MapVisualElementFactory VisualElementFactory { get; set; }
Property Value
Methods
ArrangeOverride(SizeF)
Arranges and sizes the RadMapElement and its child elements.
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
CreateMapLegendElement()
Creates a map legend element.
Declaration
protected virtual MapLegendElement CreateMapLegendElement()
Returns
CreateMapNavigationBarElement()
Creates a map navigation bar element.
Declaration
protected virtual MapNavigationBarElement CreateMapNavigationBarElement()
Returns
CreateMapScaleIndicatorElement()
Creates a map scale indicator element.
Declaration
protected virtual MapScaleIndicatorElement CreateMapScaleIndicatorElement()
Returns
CreateMiniMapElement()
Creates a new instance of the mini map element.
Declaration
protected virtual MiniMapElement CreateMiniMapElement()
Returns
A new instance of the MiniMapElement class.
CreateSearchBarElement()
Creates a search bar element.
Declaration
protected virtual MapSearchBarElement CreateSearchBarElement()
Returns
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.
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
availableSize
The available size that this element can give to child elements.
Returns
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
mapProvider
The map provider that has been initialized.
Overrides
OnRadMapLocalizationProviderCurrentProviderChanged(object, EventArgs)
Handles the event raised when the current localization provider changes.
PaintProvidersContent(IGraphics)
Paints the content from all map providers.
Declaration
protected override void PaintProvidersContent(IGraphics graphics)
Parameters
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
child
The child element to check.
Returns
true if the child should be arranged; otherwise, false.
Overrides
ShouldMeasureChild(RadElement)
Determines whether the specified child element should be measured during the measure pass.
Declaration
protected override bool ShouldMeasureChild(RadElement child)
Parameters
child
The child element to check.
Returns
true if the child should be measured; otherwise, false.
Overrides