EmptyMapProvider
Provides an empty map implementation that displays no content, useful for scenarios requiring a blank map canvas or as a placeholder provider.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadMap.dll
Syntax:
public class EmptyMapProvider : IMapProvider, ICloneable
Inheritance: objectEmptyMapProvider
Implements:
Constructors
public EmptyMapProvider()
Properties
Gets the unique identifier for this empty map provider, always returning "Empty".
public string Id { get; }
Implements:
Gets a value indicating whether this empty map provider has completed its initialization process.
public bool Initialized { get; protected set; }
Gets or sets the maximum zoom level supported by this empty map provider.
public int MaxZoomLevel { get; set; }
Implements:
Gets or sets the minimum zoom level supported by this empty map provider.
public int MinZoomLevel { get; set; }
Implements:
Methods
Creates a deep copy of this EmptyMapProvider instance with identical configuration settings.
public object Clone()
A new EmptyMapProvider object that is a copy of this instance.
Implements:
Retrieves the visual elements for the current viewport, always returning an empty collection as this provider displays no content.
public IEnumerable<MapVisualElement> GetContent(IMapViewport viewport)
The IMapViewport defining the current view area and settings.
Returns:IEnumerable<MapVisualElement>
An empty enumerable collection of MapVisualElement objects.
Implements:
Gets the list of supported map views for this provider, always returning null as no views are supported.
public List<MapViewInfo> GetSupportedViews()
List<MapViewInfo>
Always returns null since empty provider supports no specific views.
Implements:
Initializes the empty map provider, marking it as ready and raising the initialization complete event.
public void Initialize()
Implements:
Raises the InitializationComplete event when provider initialization is successfully completed.
protected virtual void OnInitializationComplete()
Raises the InitializationError event when an error occurs during provider initialization.
protected virtual void OnInitializationError()
Raises the ProviderUpdated event when provider content changes.
protected virtual void OnProviderUpdated()
Sets the active map view for this provider, currently not implemented for empty provider.
public void SetView(MapViewInfo view)
The MapViewInfo representing the desired map view.
Implements:
Responds to viewport changes by initializing the provider if not already initialized, but performs no content operations.
public void ViewportChanged(IMapViewport viewport, ViewportChangeAction action)
The IMapViewport representing the current view settings and visible area.
actionViewportChangeActionThe ViewportChangeAction indicating the type of viewport change that occurred.
Implements:
Events
Occurs when the provider initialization process is completed successfully.
public event EventHandler InitializationComplete
Implements:
Occurs when an error is encountered during the provider initialization process.
public event InitializationErrorEventHandler InitializationError
Implements:
Occurs when the provider content is updated, though empty provider never updates its content.
public event EventHandler ProviderUpdated
Implements: