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

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

See Also

Reference

TileSource Class

TileSource Overload

Microsoft.Phone.Maps.Controls Namespace