MapsRenderingClient.GetMapStateTileAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Fetches state tiles in vector format typically to be integrated into indoor maps module of map control or SDK. The map control will call this API after user turns on dynamic styling (see Zoom Levels and Tile Grid)
public virtual System.Threading.Tasks.Task<Azure.Response<System.IO.Stream>> GetMapStateTileAsync (string stateSetId, Azure.Maps.Rendering.MapTileIndex mapTileIndex, System.Threading.CancellationToken cancellationToken = default);
abstract member GetMapStateTileAsync : string * Azure.Maps.Rendering.MapTileIndex * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.IO.Stream>>
override this.GetMapStateTileAsync : string * Azure.Maps.Rendering.MapTileIndex * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.IO.Stream>>
Public Overridable Function GetMapStateTileAsync (stateSetId As String, mapTileIndex As MapTileIndex, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of Stream))
Parameters
- stateSetId
- String
The state set id for indoor map.
- mapTileIndex
- MapTileIndex
Zoom level, and coordinate of the tile on zoom grid.
The value of X and Y coordinate in mapTileIndex
must be in the range [0, (2^zoom)-1].
Please see Zoom Levels and Tile Grid for details.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
stateSetId
or mapTileIndex
is null.
Applies to
Azure SDK for .NET