HttpMapTileDataSource
HttpMapTileDataSource
HttpMapTileDataSource
Class
Definition
Provides a source of tiles for a MapTileSource. The tiles are fetched by using the HTTP or HTTPS protocol.
public class HttpMapTileDataSource : MapTileDataSource, IHttpMapTileDataSourcepublic class HttpMapTileDataSource : MapTileDataSource, IHttpMapTileDataSourcePublic Class HttpMapTileDataSource Inherits MapTileDataSource Implements IHttpMapTileDataSource
- Inheritance
-
HttpMapTileDataSourceHttpMapTileDataSourceHttpMapTileDataSource
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Inherited Members
Inherited methods
Inherited properties
Constructors
HttpMapTileDataSource() HttpMapTileDataSource() HttpMapTileDataSource()
Initializes a new instance of the HttpMapTileDataSource class.
public HttpMapTileDataSource()public HttpMapTileDataSource()Public Sub New()
- See Also
HttpMapTileDataSource(String) HttpMapTileDataSource(String) HttpMapTileDataSource(String)
Initializes a new instance of the HttpMapTileDataSource class with the specified Uri format.
public HttpMapTileDataSource(String uriFormatString)public HttpMapTileDataSource(String uriFormatString)Public Sub New(uriFormatString As String)
- uriFormatString
- System.String System.String System.String
The Uri format to use.
- See Also
Properties
AdditionalRequestHeaders AdditionalRequestHeaders AdditionalRequestHeaders
Gets or sets additional HTTP request headers and their values for fetching tiles from an HTTP source.
public IMap<string, string> AdditionalRequestHeaders { get; }public IMap<string, string> AdditionalRequestHeaders { get; }Public ReadOnly Property AdditionalRequestHeaders As IMap<string, string>
- Value
Additional HTTP request headers and their values for fetching tiles from an HTTP source.
- See Also
AllowCaching AllowCaching AllowCaching
Gets or sets a value that indicates whether the Internet cache is checked before fetching a tile from an HTTP source. When caching is disabled, a new request for the tile is made every time.
public PlatForm::Boolean AllowCaching { get; set; }public bool AllowCaching { get; set; }Public ReadWrite Property AllowCaching As bool
- Value
- bool bool bool
true if the Internet cache is checked before fetching a tile from an HTTP source; otherwise, false.
- See Also
UriFormatString UriFormatString UriFormatString
Gets or sets the format of the Uri for fetching tiles from an HTTP source.
public PlatForm::String UriFormatString { get; set; }public string UriFormatString { get; set; }Public ReadWrite Property UriFormatString As string
- Value
- string string string
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.
- See Also
Events
UriRequested UriRequested UriRequested
Occurs when the tile is requested for an HttpMapTileDataSource. An instance of MapTileUriRequestedEventArgs provides data for this event.
public event TypedEventHandler UriRequestedpublic event TypedEventHandler UriRequestedPublic Event UriRequested
- See Also