Class MapShapeDataVirtualizationSource
Default class for the map shape data virtualization. It can be used with any asynchronous map shape reader.
Inheritance
Namespace: Telerik.Windows.Controls.Map
Assembly: Telerik.Windows.Controls.DataVisualization.dll
Syntax
public class MapShapeDataVirtualizationSource : Freezable, IMapItemsVirtualizationSource
Constructors
MapShapeDataVirtualizationSource()
Initializes a new instance of the MapShapeDataVirtualizationSource class.
Declaration
public MapShapeDataVirtualizationSource()
Fields
BusyIndicatorProperty
Identifies the BusyIndicator dependency property.
Declaration
public static readonly DependencyProperty BusyIndicatorProperty
Field Value
System.
|
ClearCacheProperty
Identifies the ClearCache dependency property.
Declaration
public static readonly DependencyProperty ClearCacheProperty
Field Value
System.
|
ReaderProperty
Identifies the Reader dependency property.
Declaration
public static readonly DependencyProperty ReaderProperty
Field Value
System.
|
Properties
BusyIndicator
Gets or sets busy indicator to show map shapes loading progress.
Declaration
public RadBusyIndicator BusyIndicator { get; set; }
Property Value
ClearCache
Gets or sets value which indicates whether internal cache should be cleaned before reading of the new items.
Declaration
public bool ClearCache { get; set; }
Property Value
System.
|
InternalCache
Gets internal cache. Can be used as items source for other UI controls (RadTreeView, for example).
Declaration
public ObservableCollection<ExtendedDataProvider> InternalCache { get; }
Property Value
System.
|
Items
Gets items from the internal cache.
Declaration
public IEnumerable<ExtendedDataProvider> Items { get; }
Property Value
System.
|
Reader
Gets or sets reader to loading map shapes.
Declaration
public AsyncReaderBase Reader { get; set; }
Property Value
Resolution
Gets or sets minimal pixel size of the object. If pixel size of the object is less then this value then object will not be passed to the visualization layer.
Declaration
public double Resolution { get; set; }
Property Value
System.
|
Methods
Add(ExtendedDataProvider)
Add item to the internal cache.
Declaration
public void Add(ExtendedDataProvider item)
Parameters
Extended Item to add. |
add_PreviewReadShapeData(PreviewReadShapeDataCompletedEventHandler)
Declaration
public void add_PreviewReadShapeData(PreviewReadShapeDataCompletedEventHandler value)
Parameters
add_PreviewReadShapeDataCompleted(PreviewReadShapeDataCompletedEventHandler)
Declaration
public void add_PreviewReadShapeDataCompleted(PreviewReadShapeDataCompletedEventHandler value)
Parameters
add_ReadShapeDataCompleted(ReadShapeDataCompletedEventHandler)
Declaration
public void add_ReadShapeDataCompleted(ReadShapeDataCompletedEventHandler value)
Parameters
AddRange(IList<ExtendedDataProvider>)
Add items to the internal cache.
Declaration
public void AddRange(IList<ExtendedDataProvider> items)
Parameters
System. List of the items to add. |
Clear()
Removes all items from the internal cache.
Declaration
public void Clear()
CreateInstanceCore()
When implemented in a derived class, creates a new instance of the Freezable derived class.
Declaration
protected override Freezable CreateInstanceCore()
Returns
System. The new instance. |
MapItemsRequest(Object, MapItemsRequestEventArgs)
Background data request event handler for the VisualizationLayer layer.
Declaration
public void MapItemsRequest(object sender, MapItemsRequestEventArgs eventArgs)
Parameters
System. The VisualizationLayer Layer instance. |
Map Request arguments. |
Implements
ReadAsync()
Reads geospatial data using asynchronous mode.
Declaration
public void ReadAsync()
ReadAsync(Object)
Reads geospatial data using asynchronous mode.
Declaration
public void ReadAsync(object userState)
Parameters
System. A user-defined object that is passed to the method invoked when the asynchronous operation completes. |
Remove(ExtendedDataProvider)
Remove item from the internal cache.
Declaration
public void Remove(ExtendedDataProvider item)
Parameters
Extended Item to remove. |
remove_PreviewReadShapeData(PreviewReadShapeDataCompletedEventHandler)
Declaration
public void remove_PreviewReadShapeData(PreviewReadShapeDataCompletedEventHandler value)
Parameters
remove_PreviewReadShapeDataCompleted(PreviewReadShapeDataCompletedEventHandler)
Declaration
public void remove_PreviewReadShapeDataCompleted(PreviewReadShapeDataCompletedEventHandler value)
Parameters
remove_ReadShapeDataCompleted(ReadShapeDataCompletedEventHandler)
Declaration
public void remove_ReadShapeDataCompleted(ReadShapeDataCompletedEventHandler value)
Parameters
RemoveRange(IList<ExtendedDataProvider>)
Remove items from the internal cache.
Declaration
public void RemoveRange(IList<ExtendedDataProvider> items)
Parameters
System. List of the items to remove. |
Events
PreviewReadShapeData
Occurs when a shape data is read.
Declaration
public event PreviewReadShapeDataCompletedEventHandler PreviewReadShapeData
Event Type
PreviewReadShapeDataCompleted
Occurs when the reader completes to read shapes.
Declaration
public event PreviewReadShapeDataCompletedEventHandler PreviewReadShapeDataCompleted
Event Type
ProgressChanged
Occurs when part of data is read.
Declaration
public event ProgressChangedEventHandler ProgressChanged
Event Type
System.
|
ReadShapeDataCompleted
Occurs when the reader completes to read shapes and pass them to target information layer.
Declaration
public event ReadShapeDataCompletedEventHandler ReadShapeDataCompleted