TileSource Constructor (String, LocationRectangle, Int32, Int32)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Initializes a new instance of the TileSource class.
Namespace: Microsoft.Phone.Maps.Controls
Assembly: Microsoft.Phone.Maps (in Microsoft.Phone.Maps.dll)
Syntax
Public Sub New ( _
uriFormat As String, _
boundingRectangle As LocationRectangle, _
minZoomLevel As Integer, _
maxZoomLevel As Integer _
)
public TileSource(
string uriFormat,
LocationRectangle boundingRectangle,
int minZoomLevel,
int maxZoomLevel
)
Parameters
- uriFormat
Type: System..::.String
The format used to create the URI.
- boundingRectangle
Type: Microsoft.Phone.Maps.Controls..::.LocationRectangle
LocationRectangle where the TileSource contains the tiles.
- minZoomLevel
Type: System..::.Int32
Minimum zoom level where TileSource contains tiles
- maxZoomLevel
Type: System..::.Int32
Maximum zoom level where TileSource contains tiles
Remarks
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.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0