RadMap
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadMap.dll
Syntax:
[TelerikToolboxCategory("Data Controls")]
public class RadMap : RadControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadMap...
Implements:
Inherited Members
Constructors
Properties
Gets the default size of the RadMap control.
protected override Size DefaultSize { get; }
Overrides:
Gets or sets the input behavior that handles user interactions with the map.
public MapInputBehavior InputBehavior { get; set; }
Gets a value indicating whether visual updates to the map are currently suspended.
public bool IsUpdateSuspended { get; }
true if updates are suspended; otherwise, false.
Gets the collection of layers that can be displayed on the map.
public MapLayerCollection Layers { get; }
Gets the main map element that provides the core functionality of the RadMap control.
public RadMapElement MapElement { get; }
Gets the collection of map providers that can be used to visualize the map.
public MapProviderCollection Providers { get; }
Gets a collection of the currently selected visual elements on the map.
public List<MapVisualElement> SelectedElements { 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; }
Methods
Suspends visual updates to the map until the EndUpdate method is called.
public void BeginUpdate()
Centers the map viewport on the specified geographic location.
public virtual void BringIntoView(PointG location)
The geographic location to center the map on.
Adjusts the zoom level and position of the map to fit the specified geographic rectangle in the viewport.
public virtual void BringIntoView(RectangleG rectangle)
The geographic rectangle to bring into view.
Creates child elements of the RadMap control.
protected override void CreateChildItems(RadElement parent)
The parent element to which child elements will be added.
Overrides:
Creates a new instance of the RadMapElement class.
protected virtual RadMapElement CreateMapElement()
A new instance of the RadMapElement class.
Resumes visual updates to the map and performs an immediate update.
public void EndUpdate()
Resumes visual updates to the map and optionally performs an immediate update.
public void EndUpdate(bool update)
If set to true, an immediate update is performed; otherwise, the update is deferred.
Moves the map viewport by the specified amount in pixels.
public virtual void Pan(SizeL delta)
The amount to move the viewport in pixels.
Sets the zoom level of the map viewport with an optional animation, centered around a specific point.
Events
Occurs when the selection of visual elements on the map changes, typically when a user clicks on a visual element in the layers.
public event EventHandler<MapSelectionChangedEventArgs> SelectionChanged