TileSource Constructor (String, Int32, Int32)

May 11, 2014

Initializes a new instance of the TileSource class.

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

public TileSource(
	string uriFormat,
	int minZoomLevel,
	int maxZoomLevel
)

Parameters

uriFormat
Type: System.String
The format used to create the URI.
minZoomLevel
Type: System.Int32
Minimum zoom level where TileSource contains tiles
maxZoomLevel
Type: System.Int32
Maximum zoom level where TileSource contains tiles

Valid values for the zoom level are 1 through 20.

  • If you specify a value that is less than 1 for minZoomLevel, the value is changed to 1.

  • If you specify a value that is greater than 20 for maxZoomLevel, the value is changed to 20.

  • If you specify a larger value for minZoomLevel than for maxZoomLevel, an exception occurs.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2014 Microsoft