New to Telerik ReportingStart a free 30-day trial

A class used to obtain map tiles from any tile server compliant with Web Map Tile Service protocol.

Definition

Namespace:Telerik.Reporting

Assembly:Telerik.Reporting.dll

Syntax:

C#
public class GenericTileProvider : TileProvider, ITileProvider

Inheritance: objectTileProviderGenericTileProvider

Implements: ITileProvider

Inherited Members TileProvider.TileImageFormat

Constructors

C#
public GenericTileProvider()

Properties

Gets or sets the Attribution property must be set manually according to the tile provider usage policy. This text will be displayed in the lower right corner of the map area.

C#
public string Attribution { get; set; }

LogoUrl

string

Gets or sets the LogoUrl property denotes the URL used to download the tile provider logo, if required by the provider's usage policy. In case the URL points to a valid image, it will be displayed in the lower left corner of the map area.

C#
public string LogoUrl { get; set; }

UrlSubdomains

Collection<string>

Gets a collection of subdomains that will replace the {subdomain} tag in the UrlTemplate. When more than one subdomain is specified, the tile requests will be distributed evenly among the subdomains.

C#
public Collection<string> UrlSubdomains { get; }
Remarks:

For example, for MapQuest Tile server the subdomains are:

otile1, otile2, otile3, otile4

Gets or sets a templated URL that will be used to fetch the tiles from the tile provider. Valid template patterns are {subdomain}, {x}, {y}, {zoom}.

C#
public string UrlTemplate { get; set; }
Remarks:

The UrlTemplate have the following format:

http://{subdomain}.mqcdn.com/tiles/1.0.0/map/{zoom}/{x}/{y}.jpg

The {subdomain} tag marks the place where a subdomain from the UrlSubdomains collection would be placed. This tag is not mandatory, since the selected tile provider may not offer more than one subdomain.

The {zoom} tag will be replaced by the calculated zoom level (level of details) of the current tile set.

The {x} and {y} tags are used as a placeholders for the tile position.

UserAgent

string

Gets or sets the UserAgent header value that will be used when sending requests to the tile provider servers.

C#
public string UserAgent { get; set; }