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 : DependencyObject, 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.Windows.DependencyProperty
|
ClearCacheProperty
Identifies the ClearCache dependency property.
Declaration
public static readonly DependencyProperty ClearCacheProperty
Field Value
System.Windows.DependencyProperty
|
ReaderProperty
Identifies the Reader dependency property.
Declaration
public static readonly DependencyProperty ReaderProperty
Field Value
System.Windows.DependencyProperty
|
Properties
BusyIndicator
Gets or sets busy indicator to show map shapes loading progress.
Declaration
public RadBusyIndicator BusyIndicator { get; set; }
Property Value
RadBusyIndicator
|
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.Boolean
|
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.Collections.ObjectModel.ObservableCollection<ExtendedDataProvider>
|
Items
Gets items from the internal cache.
Declaration
public IEnumerable<ExtendedDataProvider> Items { get; }
Property Value
System.Collections.Generic.IEnumerable<ExtendedDataProvider>
|
Reader
Gets or sets reader to loading map shapes.
Declaration
public AsyncReaderBase Reader { get; set; }
Property Value
AsyncReaderBase
|
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.Double
|
Methods
Add(ExtendedDataProvider)
Add item to the internal cache.
Declaration
public void Add(ExtendedDataProvider item)
Parameters
ExtendedDataProvider
item
Item to add. |
add_PreviewReadShapeData(PreviewReadShapeDataCompletedEventHandler)
Declaration
public void add_PreviewReadShapeData(PreviewReadShapeDataCompletedEventHandler value)
Parameters
PreviewReadShapeDataCompletedEventHandler
value
|
add_PreviewReadShapeDataCompleted(PreviewReadShapeDataCompletedEventHandler)
Declaration
public void add_PreviewReadShapeDataCompleted(PreviewReadShapeDataCompletedEventHandler value)
Parameters
PreviewReadShapeDataCompletedEventHandler
value
|
add_ReadShapeDataCompleted(ReadShapeDataCompletedEventHandler)
Declaration
public void add_ReadShapeDataCompleted(ReadShapeDataCompletedEventHandler value)
Parameters
ReadShapeDataCompletedEventHandler
value
|
AddRange(IList<ExtendedDataProvider>)
Add items to the internal cache.
Declaration
public void AddRange(IList<ExtendedDataProvider> items)
Parameters
System.Collections.Generic.IList<ExtendedDataProvider>
items
List of the items to add. |
Clear()
Removes all items from the internal cache.
Declaration
public void Clear()
MapItemsRequest(Object, MapItemsRequestEventArgs)
Background data request event handler for the VisualizationLayer layer.
Declaration
public void MapItemsRequest(object sender, MapItemsRequestEventArgs eventArgs)
Parameters
System.Object
sender
The VisualizationLayer Layer instance. |
MapItemsRequestEventArgs
eventArgs
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.Object
userState
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
ExtendedDataProvider
item
Item to remove. |
remove_PreviewReadShapeData(PreviewReadShapeDataCompletedEventHandler)
Declaration
public void remove_PreviewReadShapeData(PreviewReadShapeDataCompletedEventHandler value)
Parameters
PreviewReadShapeDataCompletedEventHandler
value
|
remove_PreviewReadShapeDataCompleted(PreviewReadShapeDataCompletedEventHandler)
Declaration
public void remove_PreviewReadShapeDataCompleted(PreviewReadShapeDataCompletedEventHandler value)
Parameters
PreviewReadShapeDataCompletedEventHandler
value
|
remove_ReadShapeDataCompleted(ReadShapeDataCompletedEventHandler)
Declaration
public void remove_ReadShapeDataCompleted(ReadShapeDataCompletedEventHandler value)
Parameters
ReadShapeDataCompletedEventHandler
value
|
RemoveRange(IList<ExtendedDataProvider>)
Remove items from the internal cache.
Declaration
public void RemoveRange(IList<ExtendedDataProvider> items)
Parameters
System.Collections.Generic.IList<ExtendedDataProvider>
items
List of the items to remove. |
Events
PreviewReadShapeData
Occurs when a shape data is read.
Declaration
public event PreviewReadShapeDataCompletedEventHandler PreviewReadShapeData
Event Type
PreviewReadShapeDataCompletedEventHandler
|
PreviewReadShapeDataCompleted
Occurs when the reader completes to read shapes.
Declaration
public event PreviewReadShapeDataCompletedEventHandler PreviewReadShapeDataCompleted
Event Type
PreviewReadShapeDataCompletedEventHandler
|
ProgressChanged
Occurs when part of data is read.
Declaration
public event ProgressChangedEventHandler ProgressChanged
Event Type
System.ComponentModel.ProgressChangedEventHandler
|
ReadShapeDataCompleted
Occurs when the reader completes to read shapes and pass them to target information layer.
Declaration
public event ReadShapeDataCompletedEventHandler ReadShapeDataCompleted
Event Type
ReadShapeDataCompletedEventHandler
|