Class
MapShapeDataVirtualizationSource

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:

cs-api-definition
public class MapShapeDataVirtualizationSource : Freezable, IMapItemsVirtualizationSource

Inheritance: objectMapShapeDataVirtualizationSource

Implements: IMapItemsVirtualizationSource

Constructors

MapShapeDataVirtualizationSource()

Initializes a new instance of the MapShapeDataVirtualizationSource class.

Declaration

cs-api-definition
public MapShapeDataVirtualizationSource()

Fields

BusyIndicatorProperty

Identifies the BusyIndicator dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty BusyIndicatorProperty

Field Value

DependencyProperty

ClearCacheProperty

Identifies the ClearCache dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ClearCacheProperty

Field Value

DependencyProperty

ReaderProperty

Identifies the Reader dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ReaderProperty

Field Value

DependencyProperty

Properties

BusyIndicator

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

Declaration

cs-api-definition
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

cs-api-definition
public bool ClearCache { get; set; }

Property Value

bool

InternalCache

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

Declaration

cs-api-definition
public ObservableCollection<ExtendedDataProvider> InternalCache { get; }

Property Value

ObservableCollection<ExtendedDataProvider>

Items

Gets items from the internal cache.

Declaration

cs-api-definition
public IEnumerable<ExtendedDataProvider> Items { get; }

Property Value

IEnumerable<ExtendedDataProvider>

Reader

Gets or sets reader to loading map shapes.

Declaration

cs-api-definition
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

cs-api-definition
public double Resolution { get; set; }

Property Value

double

Methods

Add(ExtendedDataProvider)

Add item to the internal cache.

Declaration

cs-api-definition
public void Add(ExtendedDataProvider item)

Parameters

item

ExtendedDataProvider

Item to add.

AddRange(IList<ExtendedDataProvider>)

Add items to the internal cache.

Declaration

cs-api-definition
public void AddRange(IList<ExtendedDataProvider> items)

Parameters

items

IList<ExtendedDataProvider>

List of the items to add.

Clear()

Removes all items from the internal cache.

Declaration

cs-api-definition
public void Clear()

CreateInstanceCore()

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

Declaration

cs-api-definition
protected override Freezable CreateInstanceCore()

Returns

Freezable

The new instance.

MapItemsRequest(object, MapItemsRequestEventArgs)

Background data request event handler for the VisualizationLayer layer.

Declaration

cs-api-definition
public void MapItemsRequest(object sender, MapItemsRequestEventArgs eventArgs)

Parameters

sender

object

The VisualizationLayer Layer instance.

eventArgs

MapItemsRequestEventArgs

Request arguments.

Implements IMapItemsVirtualizationSource.MapItemsRequest(object, MapItemsRequestEventArgs)

ReadAsync()

Reads geospatial data using asynchronous mode.

Declaration

cs-api-definition
public void ReadAsync()

ReadAsync(object)

Reads geospatial data using asynchronous mode.

Declaration

cs-api-definition
public void ReadAsync(object userState)

Parameters

userState

object

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

cs-api-definition
public void Remove(ExtendedDataProvider item)

Parameters

item

ExtendedDataProvider

Item to remove.

RemoveRange(IList<ExtendedDataProvider>)

Remove items from the internal cache.

Declaration

cs-api-definition
public void RemoveRange(IList<ExtendedDataProvider> items)

Parameters

items

IList<ExtendedDataProvider>

List of the items to remove.

Events

PreviewReadShapeData

Occurs when a shape data is read.

Declaration

cs-api-definition
public event PreviewReadShapeDataCompletedEventHandler PreviewReadShapeData

Event Value

PreviewReadShapeDataCompletedEventHandler

PreviewReadShapeDataCompleted

Occurs when the reader completes to read shapes.

Declaration

cs-api-definition
public event PreviewReadShapeDataCompletedEventHandler PreviewReadShapeDataCompleted

Event Value

PreviewReadShapeDataCompletedEventHandler

ProgressChanged

Occurs when part of data is read.

Declaration

cs-api-definition
public event ProgressChangedEventHandler ProgressChanged

Event Value

ProgressChangedEventHandler

ReadShapeDataCompleted

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

Declaration

cs-api-definition
public event ReadShapeDataCompletedEventHandler ReadShapeDataCompleted

Event Value

ReadShapeDataCompletedEventHandler