Class MultiScaleTileSource
Represents the tile source of the multi scale image control.
Inheritance
Namespace: Telerik.Windows.Controls.Map
Assembly: Telerik.Windows.Controls.DataVisualization.dll
Syntax
public abstract class MultiScaleTileSource : DependencyObject
Constructors
MultiScaleTileSource(Int32, Int32, Int32, Int32, Int32)
Initializes a new instance of the MultiScaleTileSource class.
Declaration
protected MultiScaleTileSource(int imageWidth, int imageHeight, int tileWidth, int tileHeight, int tileOverlap)
Parameters
System.Int32
imageWidth
Not used. |
System.Int32
imageHeight
Not used. |
System.Int32
tileWidth
Tile width. |
System.Int32
tileHeight
Tile height. |
System.Int32
tileOverlap
Not used. |
Properties
RequestCredentials
Gets or sets credentials for downloading tiles.
Declaration
public ICredentials RequestCredentials { get; set; }
Property Value
System.Net.ICredentials
|
WebHeaders
Gets or sets the headers used in the get requests made to the tile servers via System.Net.WebClient.
Declaration
public WebHeaderCollection WebHeaders { get; set; }
Property Value
System.Net.WebHeaderCollection
|
Methods
CacheTile(Int32, Int32, Int32, Uri, DateTime, Byte[])
Returned a streams that is loaded from Uri inside the MultiScaleImage.
Declaration
public virtual void CacheTile(int tileLevel, int tilePositionX, int tilePositionY, Uri uri, DateTime expires, byte[] tileBody)
Parameters
System.Int32
tileLevel
Level of the tile. |
System.Int32
tilePositionX
X-matrix coordinate of the tile. |
System.Int32
tilePositionY
Y-matrix coordinate of the tile. |
System.Uri
uri
Uri. |
System.DateTime
expires
DateTime of expires. |
System.Byte[]
tileBody
Tile body. |
GetCachedTileAsync(Int32, Int32, Int32, Action<Byte[]>)
Requests the cached tile.
Declaration
protected virtual void GetCachedTileAsync(int tileLevel, int tilePositionX, int tilePositionY, Action<byte[]> callback)
Parameters
System.Int32
tileLevel
Level of the tile. |
System.Int32
tilePositionX
X-matrix coordinate of the tile. |
System.Int32
tilePositionY
Y-matrix coordinate of the tile. |
System.Action<System.Byte[]>
callback
Callback which should be called to return tile if it is available or null. |
GetTileLayers(Int32, Int32, Int32, IList<Object>)
Gets a collection of the URIs that comprise the Deep Zoom image.
Declaration
protected abstract void GetTileLayers(int tileLevel, int tilePositionX, int tilePositionY, IList<object> tileImageLayerSources)
Parameters
System.Int32
tileLevel
Level of the tile. |
System.Int32
tilePositionX
X-matrix coordinate of the tile. |
System.Int32
tilePositionY
Y-matrix coordinate of the tile. |
System.Collections.Generic.IList<System.Object>
tileImageLayerSources
Source of the tile image layer, which is a collection of URIs. |
InvalidateTileLayer(Int32, Int32, Int32, Int32)
Invalidates specified tile layers.
Declaration
public virtual void InvalidateTileLayer(int tileLevel, int tilePositionX, int tilePositionY, int tileLayer)
Parameters
System.Int32
tileLevel
Tile level. |
System.Int32
tilePositionX
X position of the tile. |
System.Int32
tilePositionY
Y position of the tile. |
System.Int32
tileLayer
Layer of the tile. |
OnHttpAuthenticationRequired(Uri, String, Dictionary<String, String>)
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.
Declaration
protected virtual void OnHttpAuthenticationRequired(Uri uri, string type, Dictionary<string, string> attributes)
Parameters
System.Uri
uri
The Request Uri. |
System.String
type
Authorization type. |
System.Collections.Generic.Dictionary<System.String, System.String>
attributes
Authorization attributes like "realm" for Basic HTTP authentication. |
SetTileCacheSize(Int32)
Sets maximal size of tile cache.
Declaration
public void SetTileCacheSize(int bytes)
Parameters
System.Int32
bytes
The size in bytes. |