New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public class MapShapeDataVirtualizationSource : Freezable, IMapItemsVirtualizationSource

Inheritance: objectMapShapeDataVirtualizationSource

Implements: IMapItemsVirtualizationSource

Constructors

Initializes a new instance of the MapShapeDataVirtualizationSource class.

C#
public MapShapeDataVirtualizationSource()

Fields

BusyIndicatorProperty

DependencyProperty

Identifies the BusyIndicator dependency property.

C#
public static readonly DependencyProperty BusyIndicatorProperty

ClearCacheProperty

DependencyProperty

Identifies the ClearCache dependency property.

C#
public static readonly DependencyProperty ClearCacheProperty

ReaderProperty

DependencyProperty

Identifies the Reader dependency property.

C#
public static readonly DependencyProperty ReaderProperty

Properties

Gets or sets busy indicator to show map shapes loading progress.

C#
public RadBusyIndicator BusyIndicator { get; set; }

Gets or sets value which indicates whether internal cache should be cleaned before reading of the new items.

C#
public bool ClearCache { get; set; }

Gets internal cache. Can be used as items source for other UI controls (RadTreeView, for example).

C#
public ObservableCollection<ExtendedDataProvider> InternalCache { get; }

Gets items from the internal cache.

C#
public IEnumerable<ExtendedDataProvider> Items { get; }

Gets or sets reader to loading map shapes.

C#
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.

C#
public double Resolution { get; set; }

Methods

Add item to the internal cache.

C#
public void Add(ExtendedDataProvider item)
Parameters:itemExtendedDataProvider

Item to add.

Add items to the internal cache.

C#
public void AddRange(IList<ExtendedDataProvider> items)
Parameters:itemsIList<ExtendedDataProvider>

List of the items to add.

Removes all items from the internal cache.

C#
public void Clear()

When implemented in a derived class, creates a new instance of the Freezable derived class.

C#
protected override Freezable CreateInstanceCore()
Returns:

Freezable

The new instance.

Background data request event handler for the VisualizationLayer layer.

C#
public void MapItemsRequest(object sender, MapItemsRequestEventArgs eventArgs)
Parameters:senderobject

The VisualizationLayer Layer instance.

eventArgsMapItemsRequestEventArgs

Request arguments.

Implements: IMapItemsVirtualizationSource.MapItemsRequest(object, MapItemsRequestEventArgs)

Reads geospatial data using asynchronous mode.

C#
public void ReadAsync()

Reads geospatial data using asynchronous mode.

C#
public void ReadAsync(object userState)
Parameters:userStateobject

A user-defined object that is passed to the method invoked when the asynchronous operation completes.

Remove item from the internal cache.

C#
public void Remove(ExtendedDataProvider item)
Parameters:itemExtendedDataProvider

Item to remove.

Remove items from the internal cache.

C#
public void RemoveRange(IList<ExtendedDataProvider> items)
Parameters:itemsIList<ExtendedDataProvider>

List of the items to remove.

Events

Occurs when a shape data is read.

C#
public event PreviewReadShapeDataCompletedEventHandler PreviewReadShapeData

Occurs when the reader completes to read shapes.

C#
public event PreviewReadShapeDataCompletedEventHandler PreviewReadShapeDataCompleted

Occurs when part of data is read.

C#
public event ProgressChangedEventHandler ProgressChanged

Occurs when the reader completes to read shapes and pass them to target information layer.

C#
public event ReadShapeDataCompletedEventHandler ReadShapeDataCompleted