New to Telerik UI for WinForms? Start a free 30-day trial

IMapProvider

Interface

Supplies map content and view configuration to a map control.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.RadMap.dll

Syntax:

C#
public interface IMapProvider : ICloneable

Inherited Members ICloneable.Clone()

Properties

Gets the identifier used to find this provider in a map's provider collection.

C#
string Id { get; }

Gets or sets the highest zoom level supported by this provider.

C#
int MaxZoomLevel { get; set; }

Gets or sets the lowest zoom level supported by this provider.

C#
int MinZoomLevel { get; set; }

Methods

Gets the visual elements supplied by the provider for the specified viewport.

C#
IEnumerable<MapVisualElement> GetContent(IMapViewport viewport)
Parameters:viewportIMapViewport

The viewport for which to retrieve map content.

Returns:

IEnumerable<MapVisualElement>

The map visual elements to display.

Gets the named views that the provider can display, or null when it has no predefined views.

C#
List<MapViewInfo> GetSupportedViews()
Returns:

List<MapViewInfo>

The supported views, or null if none are available.

Initializes the provider before it supplies map content.

C#
void Initialize()

Selects one of the views offered by GetSupportedViews().

C#
void SetView(MapViewInfo view)
Parameters:viewMapViewInfo

The view to select.

Notifies the provider that the viewport or one of its settings has changed.

C#
void ViewportChanged(IMapViewport viewport, ViewportChangeAction action)
Parameters:viewportIMapViewport

The current map viewport.

actionViewportChangeAction

The viewport changes to process.

Events

Occurs when provider initialization completes.

C#
event EventHandler InitializationComplete

Occurs when provider initialization fails.

C#
event InitializationErrorEventHandler InitializationError

Occurs when provider content changes and the map should refresh it.

C#
event EventHandler ProviderUpdated