Map service GetTileCacheInfo method
Gets the cache configuration properties for a given map.
GetTileCacheInfo(string MapName)
Parameter |
Description |
---|---|
MapName |
The name of the map (data frame) that contains a cache. |
Return Value
A TileCacheInfo object that stores information about the location, scale levels, image tile size and DPI for a map service cache.
Remarks
Information about a map service cache is necessary for client applications to retrieve and organize cached tiles correctly.
Examples
C#
MapService_MapServer mapservice = new MapService_MapServer();
mapservice.Url = "http://localhost:6080/arcgis/services/MapFusedCache/MapServer";
string mapname = mapservice.GetDefaultMapName();
if (mapservice.HasSingleFusedMapCache(mapname))
{
TileCacheInfo tilecacheinfo = mapservice.GetTileCacheInfo(mapname);
}
VB.NET
Dim mapservice As MapService_MapServer = New MapService_MapServer()
mapservice.Url = "http://localhost:6080/arcgis/services/MapFusedCache/MapServer"
Dim mapname As String = mapservice.GetDefaultMapName()
If mapservice.HasSingleFusedMapCache(mapname) Then
Dim tilecacheinfo As TileCacheInfo = mapservice.GetTileCacheInfo(mapname)
End If
Java
String serviceURL = "http://localhost:6080/arcgis/services/MapService/MapServer";
MapServerBindingStub mapService = new MapServerBindingStub(serviceURL);
String mapName = mapService.getDefaultMapName();
if (mapService.hasSingleFusedMapCache(mapName))
{
TileCacheInfo tileCacheInfo = mapService.getTileCacheInfo(mapName);
System.out.println("Tile DPI: " + tileCacheInfo.getDPI());
}
2/28/2020