skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class MultiScaleTileSource

Represents the tile source of the multi scale image control.

Inheritance
System.Object
MultiScaleTileSource
TiledMapSource
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.

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.