Class
MultiScaleTileSource

Represents the tile source of the multi scale image control.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Multi")]
public abstract class MultiScaleTileSource : DependencyObject

Inheritance: objectMultiScaleTileSource

Derived Classes: TiledMapSource

Constructors

MultiScaleTileSource(int, int, int, int, int)

Initializes a new instance of the MultiScaleTileSource class.

Declaration

cs-api-definition
[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

int

Not used.

imageHeight

int

Not used.

tileWidth

int

Tile width.

tileHeight

int

Tile height.

tileOverlap

int

Not used.

Properties

RequestCredentials

Gets or sets credentials for downloading tiles.

Declaration

cs-api-definition
public ICredentials RequestCredentials { get; set; }

Property Value

ICredentials

WebHeaders

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

Declaration

cs-api-definition
public WebHeaderCollection WebHeaders { get; set; }

Property Value

WebHeaderCollection

Methods

CacheTile(int, int, int, Uri, DateTime, byte[])

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

Declaration

cs-api-definition
public virtual void CacheTile(int tileLevel, int tilePositionX, int tilePositionY, Uri uri, DateTime expires, byte[] tileBody)

Parameters

tileLevel

int

Level of the tile.

tilePositionX

int

X-matrix coordinate of the tile.

tilePositionY

int

Y-matrix coordinate of the tile.

uri

Uri

Uri.

expires

DateTime

DateTime of expires.

tileBody

byte[]

Tile body.

GetCachedTileAsync(int, int, int, Action<byte[]>)

Requests the cached tile.

Declaration

cs-api-definition
protected virtual void GetCachedTileAsync(int tileLevel, int tilePositionX, int tilePositionY, Action<byte[]> callback)

Parameters

tileLevel

int

Level of the tile.

tilePositionX

int

X-matrix coordinate of the tile.

tilePositionY

int

Y-matrix coordinate of the tile.

callback

Action<byte[]>

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

cs-api-definition
protected abstract void GetTileLayers(int tileLevel, int tilePositionX, int tilePositionY, IList<object> tileImageLayerSources)

Parameters

tileLevel

int

Level of the tile.

tilePositionX

int

X-matrix coordinate of the tile.

tilePositionY

int

Y-matrix coordinate of the tile.

tileImageLayerSources

IList<object>

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

InvalidateTileLayer(int, int, int, int)

Invalidates specified tile layers.

Declaration

cs-api-definition
public virtual void InvalidateTileLayer(int tileLevel, int tilePositionX, int tilePositionY, int tileLayer)

Parameters

tileLevel

int

Tile level.

tilePositionX

int

X position of the tile.

tilePositionY

int

Y position of the tile.

tileLayer

int

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

cs-api-definition
protected virtual void OnHttpAuthenticationRequired(Uri uri, string type, Dictionary<string, string> attributes)

Parameters

uri

Uri

The Request Uri.

type

string

Authorization type.

attributes

Dictionary<string, string>

Authorization attributes like "realm" for Basic HTTP authentication.

SetTileCacheSize(int)

Sets maximal size of tile cache.

Declaration

cs-api-definition
public void SetTileCacheSize(int bytes)

Parameters

bytes

int

The size in bytes.