Class
MapTileDownloader

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.RadMap.dll

Syntax:

cs-api-definition
public class MapTileDownloader : IMapTileDownloader

Inheritance: objectMapTileDownloader

Implements: IMapTileDownloader

Constructors

MapTileDownloader()

Initializes a new instance of the MapTileDownloader class.

Declaration

cs-api-definition
public MapTileDownloader()

Fields

webClientsPool

Declaration

cs-api-definition
protected Dictionary<string, WebClient> webClientsPool

Field Value

Dictionary<string, WebClient>

webClientsPoolLockObject

Declaration

cs-api-definition
protected object webClientsPoolLockObject

Field Value

object

webRequestCache

Declaration

cs-api-definition
protected Dictionary<string, Uri> webRequestCache

Field Value

Dictionary<string, Uri>

Properties

WebHeaders

Gets a collection of WebHeaders that will be sent to the server with each tile download request.

Declaration

cs-api-definition
public WebHeaderCollection WebHeaders { get; }

Property Value

WebHeaderCollection

Methods

BeginDownloadTile(Uri, TileInfo)

Begins a new tile download.

Declaration

cs-api-definition
public virtual void BeginDownloadTile(Uri uri, TileInfo tileInfo)

Parameters

uri

Uri

The URI.

tileInfo

TileInfo

The tile information.

Implements IMapTileDownloader.BeginDownloadTile(Uri, TileInfo)

CancelTileDownload(TileInfo)

Cancels a ongoing tile download.

Declaration

cs-api-definition
public virtual void CancelTileDownload(TileInfo tileInfo)

Parameters

tileInfo

TileInfo

The tile information.

Implements IMapTileDownloader.CancelTileDownload(TileInfo)

OnTileDownloadComplete(TileInfoEventArgs)

Fires the event.

Declaration

cs-api-definition
protected virtual void OnTileDownloadComplete(TileInfoEventArgs e)

Parameters

e

TileInfoEventArgs

The TileInfoEventArgs instance containing the event data.

ShouldRetryDownload(Exception)

Determines whether a failed download should be performed again.

Declaration

cs-api-definition
protected virtual bool ShouldRetryDownload(Exception error)

Parameters

error

Exception

The error.

Returns

bool

true if XXXX, false otherwise.

TileDownloadDataCompleted(object, DownloadDataCompletedEventArgs)

Called when the data download for the tile is complete.

Declaration

cs-api-definition
protected virtual void TileDownloadDataCompleted(object sender, DownloadDataCompletedEventArgs e)

Parameters

sender

object

The sender.

e

DownloadDataCompletedEventArgs

The DownloadDataCompletedEventArgs instance containing the event data.

Events

TileDownloadComplete

Occurs when a tile download is complete.

Declaration

cs-api-definition
public event TileInfoEventHandler TileDownloadComplete

Event Value

TileInfoEventHandler

Implements IMapTileDownloader.TileDownloadComplete