LocationRectTileSource.GetUri Method
This documentation is no longer available on MSDN, however it is available as a CHM download.
Retrieves the URI of a tile at the given point and zoom level.
Namespace: Microsoft.Maps.MapControl
Assembly: Microsoft.Maps.MapControl (in Microsoft.Maps.MapControl.dll)
Usage
Syntax
'Declaration
Public Overrides Function GetUri ( _
x As Integer, _
y As Integer, _
zoomLevel As Integer _
) As Uri
public override Uri GetUri (
int x,
int y,
int zoomLevel
)
public:
virtual Uri^ GetUri (
int x,
int y,
int zoomLevel
) override
public Uri GetUri (
int x,
int y,
int zoomLevel
)
public override function GetUri (
x : int,
y : int,
zoomLevel : int
) : Uri
Parameters
- x
The horizontal position of the tile.
- y
The vertical position of the tile.
- zoomLevel
The zoom level of the tile.
Return Value
Returns Uri.
Example
<UserControl x:Class="SilverlightTest1.Snippets"
xmlns="https://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="https://schemas.microsoft.com/winfx/2006/xaml"
xmlns:m="clr-namespace:Microsoft.Maps.MapControl;assembly=Microsoft.Maps.MapControl"
Width="640" Height="480">
<Grid x:Name="LayoutRoot" Background="White">
<m:Map x:Name="MapTileOverlay" CredentialsProvider="Your Key" Mode="Road" Center="48.03,-122.4" ZoomLevel="10"
Grid.ColumnSpan="2" Grid.Column="0" Grid.Row="1">
<m:Map.Children>
<m:MapTileLayer Opacity="0.7">
<m:MapTileLayer.TileSources>
<m:LocationRectTileSource UriFormat="https://www.microsoft.com/maps/isdk/ajax/layers/lidar/{quadkey}.png"
ZoomRange="10,18" BoundingRectangle="48.06282,-122.43773,47.999973,-122.37490" />
</m:MapTileLayer.TileSources>
</m:MapTileLayer>
</m:Map.Children>
</m:Map>
</Grid>
</UserControl>
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.
Platforms
Development Platforms
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Target Platforms
Change History
See Also
Reference
LocationRectTileSource Class
LocationRectTileSource Members
Microsoft.Maps.MapControl Namespace