Dela via


HttpMapTileDataSource.UriFormatString Property

Definition

Gets or sets the format of the Uri for fetching tiles from an HTTP source.

public:
 property Platform::String ^ UriFormatString { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring UriFormatString();

void UriFormatString(winrt::hstring value);
public string UriFormatString { get; set; }
var string = httpMapTileDataSource.uriFormatString;
httpMapTileDataSource.uriFormatString = string;
Public Property UriFormatString As String

Property Value

String

Platform::String

winrt::hstring

The format of the Uri for fetching tiles from an HTTP source.

Remarks

The UriFormat property accepts the following case-insensitive replacement strings:

  • {x}
  • {y}
  • {zoomlevel}
  • {quadkey} For more info about the {x}, {y}, and {quadkey} replacement strings, see Bing Maps Tile System.

Tip

If you have to provide a custom Uri for which these arguments aren't sufficient - for example, if you have to provide {subdomain} for load balancing - create the custom Uri in a custom handler for the UriRequested event. For more info, see Overlay tiled images on a map.

Applies to

See also