Map service IsFixedScaleMap method
Determines if a map (data frame) has a cache. The cache may be a single fused map or a layer cache.
IsFixedScaleMap(string MapName)
Parameter |
Description |
---|---|
MapName |
The name of the map (data frame) that may have a cache. |
Return Value
A boolean indicating a map has a cache (true) or not (false).
Remarks
This method will only determine if a map has a cache. Use HasLayerCache and HasSingleFusedMapCache to determine the type.
Examples
C#
MapService_MapServer mapservice = new MapService_MapServer();
mapservice.Url = "http://localhost:6080/arcgis/services/MapLayerCache/MapServer";
string mapname = mapservice.GetDefaultMapName();
if (mapservice.IsFixedScaleMap(mapname))
{
TileCacheInfo tilecacheinfo = mapservice.GetTileCacheInfo(mapname);
}
VB.NET
Dim mapservice As MapService_MapServer = New MapService_MapServer()
mapservice.Url = "http://localhost:6080/arcgis/services/MapLayerCache/MapServer"
Dim mapname As String = mapservice.GetDefaultMapName()
If mapservice.IsFixedScaleMap(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.isFixedScaleMap(mapName))
{
TileCacheInfo tileCacheInfo = mapService.getTileCacheInfo(mapName);
System.out.println("Tile DPI: " + tileCacheInfo.getDPI());
}
2/28/2020