Map service HasSingleFusedMapCache method

Determines if a map (data frame) has fused cache.Each map in a map service can only have one fused cache.

HasSingleFusedMapCache(string MapName)

Parameter

Description

MapName

The name of the map (data frame) that contains a single fused cache.

Return Value

A boolean indicating if the map has a fused cache (true) or not (false).

Remarks

If the HasSingleFusedMapCache method returns true, GetCacheName, GetMapTile and GetVirtualCacheDirectory methods can be used to return information and image tiles from a fused map cache. In cases where a LayerID parameter is required, use -1 to indicate a single fused map cache.

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))

{

      string fusedcachename = mapservice.GetCacheName(mapname, -1);

}

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 fusedcachename As String = mapservice.GetCacheName(mapname, -1)

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))

{

      String fusedCacheName = mapService.getCacheName(mapName, -1);

      System.out.println("Fused Cache Name: " + fusedCacheName);

}

10/23/2013