RadMapElement
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
public RadMapElement()
Properties
Gets the copyright label element that displays attribution information for the map data.
public MapCopyrightLabelElement CopyrightLabelElement { get; }
Gets the legend element that displays explanatory information about the symbols used on the map.
public MapLegendElement LegendElement { get; }
Gets the mini map element that provides an overview of the map with the current viewport highlighted.
public MiniMapElement MiniMapElement { get; }
Gets or sets the size of the mini map overview.
public Size MiniMapSize { get; set; }
Gets the navigation bar element that provides controls for panning and zooming the map.
public MapNavigationBarElement NavigationBarElement { get; }
Gets or sets the location of the navigation bar on the map.
public MapNavigationBarLocation NavigationBarLocation { get; set; }
Gets the scale indicator element that displays the current scale of the map.
public MapScaleIndicatorElement ScaleIndicatorElement { get; }
Gets the search bar element that allows users to search for locations on the map.
public MapSearchBarElement SearchBarElement { get; }
Gets or sets a value indicating whether the map legend is visible.
public bool ShowLegend { get; set; }
Gets or sets a value indicating whether the mini map overview is visible.
public bool ShowMiniMap { get; set; }
Gets or sets a value indicating whether the map navigation bar is visible.
public bool ShowNavigationBar { get; set; }
Gets or sets a value indicating whether the map scale indicator is visible.
public bool ShowScaleIndicator { get; set; }
Gets or sets a value indicating whether the map search bar is visible.
public bool ShowSearchBar { get; set; }
Gets or sets the factory responsible for creating map visual elements.
public static MapVisualElementFactory VisualElementFactory { get; set; }
Methods
Arranges and sizes the RadMapElement and its child elements.
Creates and initializes all child elements of the RadMapElement.
protected override void CreateChildElements()
Overrides:
Creates a map copyright label element.
protected virtual MapCopyrightLabelElement CreateMapCopyrightLabelElement()
Creates a map legend element.
protected virtual MapLegendElement CreateMapLegendElement()
Creates a map navigation bar element.
protected virtual MapNavigationBarElement CreateMapNavigationBarElement()
Creates a map scale indicator element.
protected virtual MapScaleIndicatorElement CreateMapScaleIndicatorElement()
Creates a new instance of the mini map element.
protected virtual MiniMapElement CreateMiniMapElement()
A new instance of the MiniMapElement class.
Creates a search bar element.
protected virtual MapSearchBarElement CreateSearchBarElement()
Releases the managed resources used by the RadMapElement.
protected override void DisposeManagedResources()
Overrides:
Initializes the fields of the RadMapElement class with their default values.
protected override void InitializeFields()
Overrides:
Measures the size required for child elements and determines a size for the RadMapElement.
Called when a map provider initialization has been completed.
public override void OnProviderInitializationComplete(IMapProvider mapProvider)
The map provider that has been initialized.
Overrides:
Paints the content from all map providers.
protected override void PaintProvidersContent(IGraphics graphics)
The graphics context used for painting.
Overrides:
Determines whether the specified child element should be arranged during the arrange pass.
protected override bool ShouldArrangeChild(RadElement child)
The child element to check.
Returns:true if the child should be arranged; otherwise, false.
Overrides:
Determines whether the specified child element should be measured during the measure pass.
protected override bool ShouldMeasureChild(RadElement child)
The child element to check.
Returns:true if the child should be measured; otherwise, false.
Overrides: