MultiScaleTileSource
Represents the tile source of the multi scale image control.
Definition
Namespace:Telerik.Windows.Controls.Map
Assembly:Telerik.Windows.Controls.DataVisualization.dll
Syntax:
public abstract class MultiScaleTileSource : DependencyObject
Inheritance: objectMultiScaleTileSource
Derived Classes:
Constructors
Initializes a new instance of the MultiScaleTileSource class.
Properties
Gets or sets credentials for downloading tiles.
public ICredentials RequestCredentials { get; set; }
Gets or sets the headers used in the get requests made to the tile servers via WebClient.
public WebHeaderCollection WebHeaders { get; set; }
Methods
Returned a streams that is loaded from Uri inside the MultiScaleImage.
public virtual void CacheTile(int tileLevel, int tilePositionX, int tilePositionY, Uri uri, DateTime expires, byte[] tileBody)
Level of the tile.
tilePositionXintX-matrix coordinate of the tile.
tilePositionYintY-matrix coordinate of the tile.
uriUriUri.
expiresDateTimeDateTime of expires.
tileBodybyte[]Tile body.
Requests the cached tile.
protected virtual void GetCachedTileAsync(int tileLevel, int tilePositionX, int tilePositionY, Action<byte[]> callback)
Level of the tile.
tilePositionXintX-matrix coordinate of the tile.
tilePositionYintY-matrix coordinate of the tile.
callbackAction<byte[]>Callback which should be called to return tile if it is available or null.
Gets a collection of the URIs that comprise the Deep Zoom image.
protected abstract void GetTileLayers(int tileLevel, int tilePositionX, int tilePositionY, IList<object> tileImageLayerSources)
Level of the tile.
tilePositionXintX-matrix coordinate of the tile.
tilePositionYintY-matrix coordinate of the tile.
tileImageLayerSourcesIList<object>Source of the tile image layer, which is a collection of URIs.
When overridden in a derived class, is invoked when downloading of a tile image via HTTP gets the Unauthorized state in the HttpWebResponse. The method should provide credentials using the RequestCredentials property.
protected virtual void OnHttpAuthenticationRequired(Uri uri, string type, Dictionary<string, string> attributes)
The Request Uri.
typestringAuthorization type.
attributesDictionary<string, string>Authorization attributes like "realm" for Basic HTTP authentication.
Sets maximal size of tile cache.