Class MapsCloudClient
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
Exceptions
- ArgumentNullException
- Thrown when the - clientIdor- clientSecretis 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
- zlong
- The Z value (zoom level) of the tile to get. 
- xlong
- The X value (matrix column) of the tile to get. 
- ylong
- The Y value (matrix row) of the tile to get. 
- projectionCloudMapProjection
- The projection to generate the tile. 
- mapTypeCloudRasterMapType
- The raster map type 
- tileSizeCloudTileSize
- The tile size 
- tileResolutionTileResolution
- 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
- zlong
- The Z value (zoom level) of the tile to get. 
- xlong
- The X value (matrix column) of the tile to get. 
- ylong
- The Y value (matrix row) of the tile to get. 
- projectionCloudMapProjection
- The projection to generate the tile. 
- mapTypeCloudRasterMapType
- The raster map type 
- tileSizeCloudTileSize
- The tile size 
- tileResolutionTileResolution
- The quality of tile image 
Returns
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
- zlong
- The Z value (zoom level) of the tile to get. 
- xlong
- The X value (matrix column) of the tile to get. 
- ylong
- The Y value (matrix row) of the tile to get. 
- projectionCloudMapProjection
- 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
- zlong
- The Z value (zoom level) of the tile to get. 
- xlong
- The X value (matrix column) of the tile to get. 
- ylong
- The Y value (matrix row) of the tile to get. 
- projectionCloudMapProjection
- The projection to generate the tile.