English

How To: Request a map from ArcWeb Services without a scale bar

Summary

ArcWeb Services maps appear with a scale bar by default. Instructions provided describe how to request a map without scale bars.

Note:
The ArcWeb Services product line has been retired. ESRI recommends that customers who wish to create Web applications or use services similar to those that were available in ArcWeb Services transition to the capabilities of ArcGIS Server and ArcGIS Online.

Procedure

Set the ScaleBars object equal to an empty array of ScaleBarDesc objects.

  • VB.NET code example:

    Code:
    Dim myScaleBarDescArray() As ScaleBarDesc = {}
    myMapImageOptions.scaleBars = myScaleBarDescArray

  • C# code example:

    Code:
    ScaleBarDesc[] myScaleBarDescArray = {};
    myMapImageOptions.scaleBars = myScaleBarDescArray;

  • Java code example:

    Code:
    ScaleBarDesc[] myScaleBarDescArray = {};
    myMapImageOptions.scaleBars = myScaleBarDescArray;

  • ColdFusion MX example:

    Code:
    <cfset myScaleBarDescArray = ArrayNew(0)>
    <cfset myMapImageOptions.scaleBars = #myScaleBarDescArray#>