HOW TO

Request a map from ArcWeb Services without a scale bar

Last Published: April 25, 2020

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

Article ID:000008397

Software:
  • Legacy Products

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic