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