Skip to content

GoogleMapTilesSession

Namespace: ThinkGeo.Core

What the Google Map Tiles API answered when the session was created.

public class GoogleMapTilesSession

Inheritance object → GoogleMapTilesSession

Remarks:

The Map Tiles API will not serve a tile until a session exists, and the reply carries the token every tile request has to quote, when it stops being valid, and the tile size and image format Google will actually serve.

These are the server's answers, not the layer's settings. In particular GoogleMapTilesSession.TileWidth is what Google says it will send, while the size the layer grids and draws against is TileMatrixSet.TileWidth. They normally agree; when they do not, this is where you find out.

Properties

Token

Gets the session token that every tile request quotes.

public string Token { get; }

Property Value

string

ExpiresAt

Gets the moment the session stops being valid, or null when the server did not say.

public Nullable<DateTimeOffset> ExpiresAt { get; }

Property Value

Nullable<DateTimeOffset>

Remarks:

The layer renews the session on its own shortly before this time, so there is normally nothing to do with it beyond diagnostics.

TileWidth

Gets the tile width in pixels that Google will serve for this session.

public int TileWidth { get; }

Property Value

int

TileHeight

Gets the tile height in pixels that Google will serve for this session.

public int TileHeight { get; }

Property Value

int

ImageFormat

Gets the image format Google will serve for this session. GoogleMapTilesImageFormat.Automatic when the server named none, or one this SDK does not know.

public GoogleMapTilesImageFormat ImageFormat { get; }

Property Value

GoogleMapTilesImageFormat

Methods

A(string)

internal static GoogleMapTilesImageFormat A(string )

Parameters

`` string

Returns

GoogleMapTilesImageFormat