Dela via


MapsRenderingClient.GetMapStateTile 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 Azure.Response<System.IO.Stream> GetMapStateTile (string stateSetId, Azure.Maps.Rendering.MapTileIndex mapTileIndex, System.Threading.CancellationToken cancellationToken = default);
abstract member GetMapStateTile : string * Azure.Maps.Rendering.MapTileIndex * System.Threading.CancellationToken -> Azure.Response<System.IO.Stream>
override this.GetMapStateTile : string * Azure.Maps.Rendering.MapTileIndex * System.Threading.CancellationToken -> Azure.Response<System.IO.Stream>
Public Overridable Function GetMapStateTile (stateSetId As String, mapTileIndex As MapTileIndex, Optional cancellationToken As CancellationToken = Nothing) As Response(Of Stream)

Parameters

stateSetId
String

The state set id.

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 is null.

Applies to