MapTileDownloader
Downloads map tile data asynchronously and exposes request headers for customization.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadMap.dll
Syntax:
public class MapTileDownloader : IMapTileDownloader
Inheritance: objectMapTileDownloader
Implements:
Constructors
Initializes a new instance of the MapTileDownloader class.
public MapTileDownloader()
Fields
Tracks active web requests by the quadkey of their tile.
protected Dictionary<string, WebClient> webClientsPool
Synchronizes access to the active request and URI dictionaries.
protected object webClientsPoolLockObject
Stores the URI associated with each active request, keyed by tile quadkey.
protected Dictionary<string, Uri> webRequestCache
Properties
Gets a collection of WebHeaders that will be sent to the server with each tile download request.
public WebHeaderCollection WebHeaders { get; }
Methods
Cancels a ongoing tile download.
public virtual void CancelTileDownload(TileInfo tileInfo)
The tile information.
Implements:
Fires the event.
protected virtual void OnTileDownloadComplete(TileInfoEventArgs e)
The TileInfoEventArgs instance containing the event data.
Called when the data download for the tile is complete.
protected virtual void TileDownloadDataCompleted(object sender, DownloadDataCompletedEventArgs e)
The sender.
eDownloadDataCompletedEventArgsThe DownloadDataCompletedEventArgs instance containing the event data.
Events
Occurs when a tile download is complete.
public event TileInfoEventHandler TileDownloadComplete
Implements: