IMapProvider
Supplies map content and view configuration to a map control.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadMap.dll
Syntax:
public interface IMapProvider : ICloneable
Inherited Members
Properties
Gets the identifier used to find this provider in a map's provider collection.
string Id { get; }
Gets or sets the highest zoom level supported by this provider.
int MaxZoomLevel { get; set; }
Gets or sets the lowest zoom level supported by this provider.
int MinZoomLevel { get; set; }
Methods
Gets the visual elements supplied by the provider for the specified viewport.
IEnumerable<MapVisualElement> GetContent(IMapViewport viewport)
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.
List<MapViewInfo> GetSupportedViews()
List<MapViewInfo>
The supported views, or null if none are available.
Initializes the provider before it supplies map content.
void Initialize()
Selects one of the views offered by GetSupportedViews().
Notifies the provider that the viewport or one of its settings has changed.
void ViewportChanged(IMapViewport viewport, ViewportChangeAction action)
The current map viewport.
actionViewportChangeActionThe viewport changes to process.
Events
Occurs when provider initialization completes.
event EventHandler InitializationComplete
Occurs when provider initialization fails.
event InitializationErrorEventHandler InitializationError
Occurs when provider content changes and the map should refresh it.
event EventHandler ProviderUpdated