Interface ITileService
Provides services for map tile generation
Namespace: OSGeo.MapGuide.MaestroAPI.Services
Assembly: OSGeo.MapGuide.MaestroAPI.dll
Syntax
public interface ITileService : IService
Examples
This example shows how to obtain a tile service instance. Note that you should check if this service type is supported through its capabilities.
IServerConnection conn;
...
ITileService tileSvc = (ITileService)conn.GetService((int)ServiceType.Tile);
Methods
| Improve this Doc View SourceGetTile(String, String, Int32, Int32, Int32)
Reads a tile from MapGuide
Declaration
Stream GetTile(string mapDefinition, string baseLayerGroup, int column, int row, int scaleIndex)
Parameters
Type | Name | Description |
---|---|---|
System.String | mapDefinition | A map with baselayergroups |
System.String | baseLayerGroup | The name of a baselayergroup |
System.Int32 | column | The column index of the tile |
System.Int32 | row | The row index of the tile |
System.Int32 | scaleIndex | The scale index for the tile set |
Returns
Type | Description |
---|---|
System.IO.Stream | An image stream |
GetTileAsync(String, String, Int32, Int32, Int32)
Reads a tile from MapGuide
Declaration
Task<Stream> GetTileAsync(string mapDefinition, string baseLayerGroup, int column, int row, int scaleIndex)
Parameters
Type | Name | Description |
---|---|---|
System.String | mapDefinition | |
System.String | baseLayerGroup | |
System.Int32 | column | |
System.Int32 | row | |
System.Int32 | scaleIndex |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.IO.Stream> |