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