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

Represents the tile source of the multi scale image control.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
public abstract class MultiScaleTileSource : DependencyObject

Inheritance: objectMultiScaleTileSource

Derived Classes: TiledMapSource

Constructors

Initializes a new instance of the MultiScaleTileSource class.

C#
protected MultiScaleTileSource(int imageWidth, int imageHeight, int tileWidth, int tileHeight, int tileOverlap)
Parameters:imageWidthint

Not used.

imageHeightint

Not used.

tileWidthint

Tile width.

tileHeightint

Tile height.

tileOverlapint

Not used.

Properties

Gets or sets credentials for downloading tiles.

C#
public ICredentials RequestCredentials { get; set; }

Gets or sets the headers used in the get requests made to the tile servers via WebClient.

C#
public WebHeaderCollection WebHeaders { get; set; }

Methods

Returned a streams that is loaded from Uri inside the MultiScaleImage.

C#
public virtual void CacheTile(int tileLevel, int tilePositionX, int tilePositionY, Uri uri, DateTime expires, byte[] tileBody)
Parameters:tileLevelint

Level of the tile.

tilePositionXint

X-matrix coordinate of the tile.

tilePositionYint

Y-matrix coordinate of the tile.

uriUri

Uri.

expiresDateTime

DateTime of expires.

tileBodybyte[]

Tile body.

Requests the cached tile.

C#
protected virtual void GetCachedTileAsync(int tileLevel, int tilePositionX, int tilePositionY, Action<byte[]> callback)
Parameters:tileLevelint

Level of the tile.

tilePositionXint

X-matrix coordinate of the tile.

tilePositionYint

Y-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.

C#
protected abstract void GetTileLayers(int tileLevel, int tilePositionX, int tilePositionY, IList<object> tileImageLayerSources)
Parameters:tileLevelint

Level of the tile.

tilePositionXint

X-matrix coordinate of the tile.

tilePositionYint

Y-matrix coordinate of the tile.

tileImageLayerSourcesIList<object>

Source of the tile image layer, which is a collection of URIs.

Invalidates specified tile layers.

C#
public virtual void InvalidateTileLayer(int tileLevel, int tilePositionX, int tilePositionY, int tileLayer)
Parameters:tileLevelint

Tile level.

tilePositionXint

X position of the tile.

tilePositionYint

Y position of the tile.

tileLayerint

Layer of the tile.

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.

C#
protected virtual void OnHttpAuthenticationRequired(Uri uri, string type, Dictionary<string, string> attributes)
Parameters:uriUri

The Request Uri.

typestring

Authorization type.

attributesDictionary<string, string>

Authorization attributes like "realm" for Basic HTTP authentication.

Sets maximal size of tile cache.

C#
public void SetTileCacheSize(int bytes)
Parameters:bytesint

The size in bytes.