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
clientId
orclientSecret
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
longThe Z value (zoom level) of the tile to get.
x
longThe X value (matrix column) of the tile to get.
y
longThe Y value (matrix row) of the tile to get.
projection
CloudMapProjectionThe projection to generate the tile.
mapType
CloudRasterMapTypeThe raster map type
tileSize
CloudTileSizeThe tile size
tileResolution
TileResolutionThe 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
longThe Z value (zoom level) of the tile to get.
x
longThe X value (matrix column) of the tile to get.
y
longThe Y value (matrix row) of the tile to get.
projection
CloudMapProjectionThe projection to generate the tile.
mapType
CloudRasterMapTypeThe raster map type
tileSize
CloudTileSizeThe tile size
tileResolution
TileResolutionThe 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
z
longThe Z value (zoom level) of the tile to get.
x
longThe X value (matrix column) of the tile to get.
y
longThe Y value (matrix row) of the tile to get.
projection
CloudMapProjectionThe 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
longThe Z value (zoom level) of the tile to get.
x
longThe X value (matrix column) of the tile to get.
y
longThe Y value (matrix row) of the tile to get.
projection
CloudMapProjectionThe projection to generate the tile.