TileSource Class

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Retrieves the URI for a tile based on its zoom level and tile position.

Inheritance Hierarchy

System..::.Object
  Microsoft.Phone.Maps.Controls..::.TileSource

Namespace:  Microsoft.Phone.Maps.Controls
Assembly:  Microsoft.Phone.Maps (in Microsoft.Phone.Maps.dll)

Syntax

Public Class TileSource
public class TileSource

The TileSource type exposes the following members.

Constructors

  Name Description
TileSource()()() Initializes a new instance of the TileSource class.
TileSource(String) Initializes a new instance of the TileSource class with the specified URI format.
TileSource(String, LocationRectangle) Initializes a new instance of the TileSource class.
TileSource(String, Int32, Int32) Initializes a new instance of the TileSource class.
TileSource(String, LocationRectangle, Int32, Int32) Initializes a new instance of the TileSource class.

Top

Properties

  Name Description
UriFormat Gets or sets the format used to create the URI.

Top

Methods

  Name Description
Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
GetSubdomain Retrieves the subdomain for the tile identified by the specified quadkey.
GetType Gets the Type of the current instance. (Inherited from Object.)
GetUri Retrieves the URI for the tile specified by the given x,y coordinates and zoom level.
MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
SetSubdomains Sets a matrix that represents subdomains.
ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Fields

  Name Description
QuadKeyUriFragment Specifies the piece of the URI that is the quadkey.
SubdomainUriFragment Specifies the piece of the URI that is the subdomain.
UriSchemeUriFragment Specifies the piece of the URI that is the URI scheme.
XUriFragment Specifies the piece of the URI that is the horizontal position of the tile.
YUriFragment Specifies the piece of the URI that is the vertical position of the tile.
ZoomLevelUriFragment Specifies the piece of the URI that is the zoom level of the tile.

Top

Remarks

Capabilities

If you use this API in your app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.

ID_CAP_MAP

Windows Phone 8

For more info, see App capabilities and hardware requirements for Windows Phone 8.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Phone.Maps.Controls Namespace