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

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.RadMap.dll

Syntax:

C#
public class MapTileDownloader : IMapTileDownloader

Inheritance: objectMapTileDownloader

Implements: IMapTileDownloader

Constructors

Initializes a new instance of the MapTileDownloader class.

C#
public MapTileDownloader()

Fields

C#
protected Dictionary<string, WebClient> webClientsPool
C#
protected object webClientsPoolLockObject
C#
protected Dictionary<string, Uri> webRequestCache

Properties

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

C#
public WebHeaderCollection WebHeaders { get; }

Methods

Begins a new tile download.

C#
public virtual void BeginDownloadTile(Uri uri, TileInfo tileInfo)
Parameters:uriUri

The URI.

tileInfoTileInfo

The tile information.

Implements: IMapTileDownloader.BeginDownloadTile(Uri, TileInfo)

Cancels a ongoing tile download.

C#
public virtual void CancelTileDownload(TileInfo tileInfo)
Parameters:tileInfoTileInfo

The tile information.

Implements: IMapTileDownloader.CancelTileDownload(TileInfo)

Fires the event.

C#
protected virtual void OnTileDownloadComplete(TileInfoEventArgs e)
Parameters:eTileInfoEventArgs

The TileInfoEventArgs instance containing the event data.

Determines whether a failed download should be performed again.

C#
protected virtual bool ShouldRetryDownload(Exception error)
Parameters:errorException

The error.

Returns:

bool

true if XXXX, false otherwise.

Called when the data download for the tile is complete.

C#
protected virtual void TileDownloadDataCompleted(object sender, DownloadDataCompletedEventArgs e)
Parameters:senderobject

The sender.

eDownloadDataCompletedEventArgs

The DownloadDataCompletedEventArgs instance containing the event data.

Events

Occurs when a tile download is complete.

C#
public event TileInfoEventHandler TileDownloadComplete

Implements: IMapTileDownloader.TileDownloadComplete