Table of Contents

Class MapsCloudClient

Namespace
ThinkGeo.Core
Assembly
ThinkGeo.Core.dll

A class provides the methods to access the WorldImagery APIs.

public class MapsCloudClient : CloudClient, IDisposable
Inheritance
MapsCloudClient
Implements
Inherited Members

Remarks

A class provides the methods to access the WorldImagery APIs.

Constructors

MapsCloudClient()

Initilizes an instance. You need apply client Id and secret by properties.

public MapsCloudClient()

MapsCloudClient(string, string)

Initializes an instance with ClientID and ClientSecret.

public MapsCloudClient(string clientId, string clientSecret)

Parameters

clientId string

The ClientID for the auth.

clientSecret string

The ClientSecret for the auth.

Exceptions

ArgumentNullException

Thrown when the clientId or clientSecret is null.

Methods

GetRasterTile(long, long, long, CloudMapProjection, CloudRasterMapType, CloudTileSize, TileResolution)

Get a World Imagery tile by XYZ.

public Stream GetRasterTile(long z, long x, long y, CloudMapProjection projection, CloudRasterMapType mapType, CloudTileSize tileSize, TileResolution tileResolution)

Parameters

z long

The Z value (zoom level) of the tile to get.

x long

The X value (matrix column) of the tile to get.

y long

The Y value (matrix row) of the tile to get.

projection CloudMapProjection

The projection to generate the tile.

mapType CloudRasterMapType

The raster map type

tileSize CloudTileSize

The tile size

tileResolution TileResolution

The quality of tile image

Returns

Stream

stream of image

GetRasterTileAsync(long, long, long, CloudMapProjection, CloudRasterMapType, CloudTileSize, TileResolution)

Get a World Imagery tile by XYZ.

public Task<Stream> GetRasterTileAsync(long z, long x, long y, CloudMapProjection projection, CloudRasterMapType mapType, CloudTileSize tileSize, TileResolution tileResolution)

Parameters

z long

The Z value (zoom level) of the tile to get.

x long

The X value (matrix column) of the tile to get.

y long

The Y value (matrix row) of the tile to get.

projection CloudMapProjection

The projection to generate the tile.

mapType CloudRasterMapType

The raster map type

tileSize CloudTileSize

The tile size

tileResolution TileResolution

The quality of tile image

Returns

Task<Stream>

stream of image

GetVectorTile(long, long, long, CloudMapProjection)

Get a World Streets vector tile by XYZ.

public Stream GetVectorTile(long z, long x, long y, CloudMapProjection projection)

Parameters

z long

The Z value (zoom level) of the tile to get.

x long

The X value (matrix column) of the tile to get.

y long

The Y value (matrix row) of the tile to get.

projection CloudMapProjection

The projection to generate the tile.

Returns

Stream

An MVT vector tile encoded as protobufs (PBF) and gzipped.

GetVectorTileAsync(long, long, long, CloudMapProjection)

Get a World Streets vector tile by XYZ.

public Task<Stream> GetVectorTileAsync(long z, long x, long y, CloudMapProjection projection)

Parameters

z long

The Z value (zoom level) of the tile to get.

x long

The X value (matrix column) of the tile to get.

y long

The Y value (matrix row) of the tile to get.

projection CloudMapProjection

The projection to generate the tile.

Returns

Task<Stream>

An MVT vector tile encoded as protobufs (PBF) and gzipped.