ClassMultiScaleTileSource
Represents the tile source of the multi scale image control.
Definition
Namespace:Telerik.Windows.Controls.Map
Assembly:Telerik.Windows.Controls.DataVisualization.dll
Syntax:
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Multi")]
public abstract class MultiScaleTileSource : DependencyObject
Inheritance: objectMultiScaleTileSource
Derived Classes:
Constructors
MultiScaleTileSource(int, int, int, int, int)
Initializes a new instance of the MultiScaleTileSource class.
Declaration
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "tileOverlap")]
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "imageHeight")]
protected MultiScaleTileSource(int imageWidth, int imageHeight, int tileWidth, int tileHeight, int tileOverlap)
Parameters
imageWidth
Not used.
imageHeight
Not used.
tileWidth
Tile width.
tileHeight
Tile height.
tileOverlap
Not used.
Properties
RequestCredentials
Gets or sets credentials for downloading tiles.
Declaration
public ICredentials RequestCredentials { get; set; }
Property Value
WebHeaders
Gets or sets the headers used in the get requests made to the tile servers via WebClient.
Declaration
public WebHeaderCollection WebHeaders { get; set; }
Property Value
Methods
CacheTile(int, int, int, 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
tileLevel
Level of the tile.
tilePositionX
X-matrix coordinate of the tile.
tilePositionY
Y-matrix coordinate of the tile.
uri
Uri
Uri.
expires
DateTime of expires.
tileBody
byte[]
Tile body.
GetCachedTileAsync(int, int, int, Action<byte[]>)
Requests the cached tile.
Declaration
protected virtual void GetCachedTileAsync(int tileLevel, int tilePositionX, int tilePositionY, Action<byte[]> callback)
Parameters
tileLevel
Level of the tile.
tilePositionX
X-matrix coordinate of the tile.
tilePositionY
Y-matrix coordinate of the tile.
callback
Callback which should be called to return tile if it is available or null.
GetTileLayers(int, int, int, 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
tileLevel
Level of the tile.
tilePositionX
X-matrix coordinate of the tile.
tilePositionY
Y-matrix coordinate of the tile.
tileImageLayerSources
Source of the tile image layer, which is a collection of URIs.
InvalidateTileLayer(int, int, int, int)
Invalidates specified tile layers.
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
uri
Uri
The Request Uri.
type
Authorization type.
attributes
Authorization attributes like "realm" for Basic HTTP authentication.
SetTileCacheSize(int)
Sets maximal size of tile cache.
Declaration
public void SetTileCacheSize(int bytes)
Parameters
bytes
The size in bytes.