共用方式為


MapsRenderingClient.GetMapStateTileAsync Method

Definition

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